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

Overloads

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 3:21 PM by dahrkdaiz, version 1

Comments

No comments yet.