Improved docs for removeClass (optional parameter, removes all classes if not specified)
This commit is contained in:
parent
5f4f247df0
commit
8937e088b6
10
src/jquery/jquery.js
vendored
10
src/jquery/jquery.js
vendored
|
@ -3098,15 +3098,19 @@ jQuery.macros = {
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes the specified class from the set of matched elements.
|
* Removes all or the specified class from the set of matched elements.
|
||||||
*
|
*
|
||||||
* @example $("p").removeClass("selected")
|
* @example $("p").removeClass()
|
||||||
* @before <p class="selected">Hello</p>
|
* @before <p class="selected">Hello</p>
|
||||||
* @result [ <p>Hello</p> ]
|
* @result [ <p>Hello</p> ]
|
||||||
*
|
*
|
||||||
|
* @example $("p").removeClass("selected")
|
||||||
|
* @before <p class="selected first">Hello</p>
|
||||||
|
* @result [ <p class="first">Hello</p> ]
|
||||||
|
*
|
||||||
* @name removeClass
|
* @name removeClass
|
||||||
* @type jQuery
|
* @type jQuery
|
||||||
* @param String class A CSS class to remove from the elements
|
* @param String class (optional) A CSS class to remove from the elements
|
||||||
* @cat DOM
|
* @cat DOM
|
||||||
*/
|
*/
|
||||||
removeClass: function(c){
|
removeClass: function(c){
|
||||||
|
|
Loading…
Reference in a new issue