Side navigation
#11161 closed bug (invalid)
Opened January 11, 2012 06:14PM UTC
Closed January 11, 2012 06:25PM UTC
jquery 1.7.1 min - attr
Reported by: | bratva@e1.ru | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | attributes | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
<span id="enable">Enable input</span> <input id="test" type="text" name="a[]" disabled=disabled /> $('#enable').click(function(){ $(this).next().attr('disabled',''); alert($(this).next().attr('disabled')); // disabled!!! bug or I'm idiote? })
Attachments (0)
Change History (1)
Changed January 11, 2012 06:25PM UTC by comment:1
component: | unfiled → attributes |
---|---|
priority: | undecided → low |
resolution: | → invalid |
status: | new → closed |
The mere presence of the disabled attribute indicates true for its boolean property. Setting to empty string does not change its behavior. Instead, you can do .removeAttr('disabled'), but I recommend looking into http://api.jquery.com/prop to set the actual property.