Opened 12 years ago
Closed 12 years ago
#9111 closed bug (invalid)
removeProp("checked") on a radio button or checkbox only works one time
Reported by: | 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 12 years ago by
Component: | unfiled → attributes |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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)