[jQuery] class or className
I'm using set() to change the class of some elements. Typically in HTML you use class="xxx":
<td id="x" class="c">ccc</td>
Prior posts suggested using the javascript attribute className:
$("#x").set("className","d");
Firebug shows that these are actuall two separate attributes of the TD element. So, should I actually be using:
$("#x").set("className","d");
Is one way right/wrong. Does it make a difference. At the very least it's confussing...
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/