#9879 closed bug (invalid)
removeAttr('readonly')
Reported by: | anonymous | Owned by: | anonymous |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | attributes | Version: | 1.6.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I invoke $(selector).removeAttr('readonly'),but the element is still readonly in IE8.
Change History (6)
comment:1 Changed 12 years ago by
Component: | unfiled → attributes |
---|---|
Owner: | set to anonymous |
Priority: | undecided → low |
Status: | new → pending |
comment:2 Changed 12 years ago by
Status: | pending → new |
---|
Replying to anonymous:
I invoke $(selector).removeAttr('readonly'),but the element is still readonly in IE8.
Same in IE9
comment:3 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Please use .prop("readonly", false)
to change the in-memory DOM state of the element. Attributes are, in general, only reliable when used to set the initial state as HTML markup is loaded.
Note: See
TracTickets for help on using
tickets.
Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/
Open the link and click to "Fork" (in the top menu) to get started.