Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added .removeAttr().

  • Loading branch information...
commit 367abc373be76ae24b5aed2c5e49fbc308ecebcc 1 parent b91f8a9
@jeresig jeresig authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/jquery/jquery.js
View
7 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.
*
Please sign in to comment.
Something went wrong with that request. Please try again.