Skip to content
Permalink
Browse files
Improved docs for removeClass (optional parameter, removes all classe…
…s if not specified)
  • Loading branch information
jzaefferer committed Dec 29, 2006
1 parent 5f4f247 commit 8937e088b6f06a0dbef36348aef5d7c10f3af340
Showing with 7 additions and 3 deletions.
  1. +7 −3 src/jquery/jquery.js
@@ -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>
* @result [ <p>Hello</p> ]
*
* @example $("p").removeClass("selected")
* @before <p class="selected first">Hello</p>
* @result [ <p class="first">Hello</p> ]
*
* @name removeClass
* @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
*/
removeClass: function(c){

0 comments on commit 8937e08

Please sign in to comment.