Aaron Gustafson 03 December 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. 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.
Russell: yes and no.
for
andclass
are two attributes IE does not play well with. To change thefor
attribute in IE, you needhtmlFor
and forclass
you needclassName
. Most other browsers supportget/setAttribute
onfor
andclass
.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.