From jQuery JavaScript Library
« Back to Attributes
removeAttr( name )
Remove an attribute from each of the matched elements.
Arguments:| name | String | |
|---|
| The name of the property to remove. |
Examples:| Name | Type |
Clicking the button enables the input next to it.
$("button").click(function () {
$(this).next().removeAttr("disabled")
.focus()
.val("editable now");
});