diff options
author | John Resig <jeresig@gmail.com> | 2006-08-18 04:37:41 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2006-08-18 04:37:41 +0000 |
commit | 367abc373be76ae24b5aed2c5e49fbc308ecebcc (patch) | |
tree | bd9bda3b4c312d5f5881b60ecf5bd264d7da95eb | |
parent | b91f8a9e304b8b64b8e71e9e0dc0cd9871c0a868 (diff) | |
download | jquery-367abc373be76ae24b5aed2c5e49fbc308ecebcc.tar.gz jquery-367abc373be76ae24b5aed2c5e49fbc308ecebcc.zip |
Added .removeAttr().
-rw-r--r-- | src/jquery/jquery.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 8167d1bdd..44c1eec22 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -314,7 +314,7 @@ jQuery.fn = jQuery.prototype = { // Look for the case where we're accessing a style value jQuery[ type || "attr" ]( this[0], key ); }, - + /** * Access a style property on the first matched element. * This method makes it easy to retreive a style property value @@ -2371,6 +2371,11 @@ jQuery.macros = { }, each: { + + removeAttr: function( key ) { + this.removeAttribute( key ); + }, + /** * Displays each of the set of matched elements if they are hidden. * |