]> source.dussan.org Git - jquery.git/commitdiff
Added .removeAttr().
authorJohn Resig <jeresig@gmail.com>
Fri, 18 Aug 2006 04:37:41 +0000 (04:37 +0000)
committerJohn Resig <jeresig@gmail.com>
Fri, 18 Aug 2006 04:37:41 +0000 (04:37 +0000)
src/jquery/jquery.js

index 8167d1bddc8ac0cfeb886f4b3758d4847d84c1e9..44c1eec2296fc8044b816c23b4be8f46e6889a3e 100644 (file)
@@ -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.
                 *