Opened 11 years ago
Closed 11 years ago
#10761 closed bug (invalid)
disabling textareas with prop() issue
Reported by: | faeb187 | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | attributes | Version: | 1.7 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
first time prop( "disabled", true ) on $( ':input' ) works for textareas.. but after removeProp( "disabled" ) it's not possible to disable textareas again with same function and same selector.
my workaround: I used attr( "disabled", "disabled" ) instead...
Change History (1)
comment:1 Changed 11 years ago by
Component: | unfiled → attributes |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
As per the docs on prop, never remove native properties. They will be lost forever as you have discovered. Instead, set disabled to false.