Side navigation
#10761 closed bug (invalid)
Opened November 11, 2011 03:57PM UTC
Closed November 11, 2011 04:56PM UTC
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...
Attachments (0)
Change History (1)
Changed November 11, 2011 04:56PM UTC by comment:1
component: | unfiled → attributes |
---|---|
priority: | undecided → low |
resolution: | → invalid |
status: | new → closed |
As per the docs on prop, never remove native properties. They will be lost forever as you have discovered. Instead, set disabled to false.