Home
JavaScript Tutorial
Language Basics
Operators
Statement
Development
Number Data Type
String
Function
Global
Math
Form
Array
Date
Dialogs
Document
Event
Location
Navigator
Screen
Window
History
HTML Tags
Style
DOM Node
Drag Drop
Object Oriented
Regular Expressions
XML
GUI Components
Dojo toolkit
jQuery
Animation
MS JScript
Menu
addClass « jQuery « JavaScript Tutorial
JavaScript Tutorial
jQuery
addClass
30.13.addClass
30.13.1.
Add class to a selected Tag
30.13.2.
Add style class to tag
30.13.3.
Add two classes
30.13.4.
addClass(class) adds the specified class(es) to each of the set of matched elements.
30.13.5.
Adds the class 'selected' to the matched elements.
30.13.6.
Adds the classes 'selected' and 'highlight' to the matched elements.