I'm having a niggling difficulty using Internet Explorer, where the following code:
x.setAttribute('readonly','true');
does NOT set the readonly attribute to true.
It's working fine in Mozilla, so I can't really see what the problem is (though I encountered something I'm guessing is pretty much the same in the x.className VS x.setAttribute('class','name') function problem.
It's just a simple problem, but it's annoying the crap out of me.
This is because attribute readonly can have only value "readonly". However, when dealing with booleans and controlling elements solely thru scripting, it's recommended to use the method jkd mentioned.
__________________
"Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark
Last edited by brothercake; 06-06-2003 at 11:00 AM..