Posts

Showing posts from June, 2013

Featured Post

Jquery remove class

Returns:  jQuery .removeClass([className]) className   One or more space-separated classes to be removed from the class attribute of each matched element. .removeClass(function(index, class)) function(index, class)   A function returning one or more space-separated class names to be removed. Receives the index position of the element in the set and the old class value as arguments. Remove a single class, multiple classes, or all classes from each element in the set of matched elements. If a class name is included as a parameter, then only that class will be removed from the set of matched elements. If no class names are specified in the parameter, all classes will be removed. More than one class may be removed at a time, separated by a space, from the set of matched elements, like so: $ ( 'p' ). removeClass ( 'myClass yourClass' ) This method is often used with  .addClass()  to switch elements' classes from one to another, like so: $ ( 'p' ). removeClass ( ...