PDA

View Full Version : javascript equivalent


Endeavor88
03-16-2005, 09:54 PM
lets say i assign an object to a variable, x.
then how do i assign x's class?
i can assign x's id by doing:
x.id = ...
but why doesn't this work??:
x.class = ...

IKLOP
03-16-2005, 10:04 PM
try x.className = ...