AJAX
Basics
Data
DOM
Effects
Events
Forms
jQuery UI
Plug Ins
Traversing
The removeProp()
method removes a property set by the prop() method.
Note: Do not use this method to remove other HTML attributes like style, id, or checked.
Use the removeAttr()
method instead.
$(selector).removeProp(property);
$("button").click(function(){
var $x = $("div");
$x.prop("color", "FF0000");
$x.append("The color property: " + $x.prop("color"));
$x.removeProp("color");
});