Side navigation
#9111 closed bug (invalid)
Opened May 05, 2011 01:09AM UTC
Closed May 05, 2011 01:22AM UTC
removeProp("checked") on a radio button or checkbox only works one time
Reported by: | aaron.s.harper@gmail.com | 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.
Attachments (0)
Change History (1)
Changed May 05, 2011 01:22AM UTC by comment:1
component: | unfiled → attributes |
---|---|
priority: | undecided → low |
resolution: | → invalid |
status: | new → closed |
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)