Jump to content
03/12/2005
Russell: yes and no. for and class are two attributes IE does not play well with. To change the for attribute in IE, you need htmlFor and for class you need className. Most other browsers support get/setAttribute on for and class.
for
class
htmlFor
className
get/setAttribute
Now if you want to see something really screwy, check out how you need to work with IE on form elements you want to set a name on.
name
Vote up?
03/12/2005
Russell: yes and no.
forandclassare two attributes IE does not play well with. To change theforattribute in IE, you needhtmlForand forclassyou needclassName. Most other browsers supportget/setAttributeonforandclass.Now if you want to see something really screwy, check out how you need to work with IE on form elements you want to set a
nameon.