[EMAIL PROTECTED] schrieb:
I discovered that if I want to set the class for an object, this is not the code$('#' + id).setAttribute("class", "myClass"); What is the correct syntax? Thanks, - Dave
Try this: $(...).attr("class", "myClass"); If you don't want to replace existing classes, use addClass instead. -- Jörn Zaefferer http://bassistance.de