Having this button on my page:
<input type="button" id="Button1" value="OK" class="buttonClass" width="150px"/>
and using jQuery 1.3.2, if I run this command:
alert($('.buttonClass').attr('width'));
I get '150px' in all browsers but in IE (any version) I get '0'.
if I add a custon attribute in the button's tag, something like this:
<input type="button" id="Button1" value="OK" class="buttonClass" myattribute="150px"/>
then the command:
alert($('.buttonClass').attr('myattribute'));
works in all browsers including IE and returns '150px'.
Does anyone know what is going on here and if there is a fix?