ClassName (Function)

Sets the class attribute of an element. Multiple classes can be set with this function. The Classes property will update to reflect the modified attribute.

   1:  $Div("id").ClassName("widget leftpanel floating");
   2:  $Div("id").Classes.length; // length is now 3


ClassName() : String – Returns the class string attribute applied to the element.

ClassName(String value) : Element -  Sets the class string attribute for the element.

Last edited Jan 5, 2011 at 4:21 PM by dahrkdaiz, version 1


No comments yet.