Bug Tracker

Opened 9 years ago

Closed 9 years ago

#9111 closed bug (invalid)

removeProp("checked") on a radio button or checkbox only works one time

Reported by: aaron.s.harper@… Owned by:
Priority: low Milestone: 1.next
Component: attributes Version: 1.6
Keywords: Cc:
Blocked by: Blocking:

Description

If a radio button/checkbox is checked and removeProp("checked") is called on that input, it only works the first time. Subsequent calls to removeProp("checked") don't work.

Change History (1)

comment:1 Changed 9 years ago by timmywil

Component: unfiledattributes
Priority: undecidedlow
Resolution: invalid
Status: newclosed

That is expected and removeProp should only be used in rare cases, or normally on user-defined objects. You are removing the property. Instead, set checked to false: .prop('checked', false)

Note: See TracTickets for help on using tickets.