Mehdi Kabab schrieb:
> Hi,
>
> I'm encountering a bug in removeAttr() method.
> Under IE, removeAttr's action doesn't work.
>
> You can test this in this page :
> http://gimp4you.eu.org/sandbox/js/test/removeAttr.html
>   
It's true that removeAttr is quite limited. But your examples can be 
easily rewritten and should work then:
 From $(this).prev("input").removeAttr("readonly");
To $(this).prev("input").attr("readonly", "");

The same is true for removeAttr("class"), which you already discovered.

I'm not sure if it does make any sense to extend removeAttr to cover 
these issues, or to simply extend the documentation for removeAttr to 
point at attr for these cases.

Anyway, good to point this out.

-- 
Jörn Zaefferer

http://bassistance.de


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to