jQuery Tutorial


jQuery Example


jQuery References


jQuery HTML removeAttr() Method Reference


  All jQuery with HTML Method References


Uses

jQuery removeAttr() method Removes attributes from selected elements.


Syntax

$(selector).removeAttr(attribute)

jQuery removeAttr() method supported following parameters.

ParameterDescription
attributeattribute is Required parameter. get the value of attribute.

jQuery removeAttr() Method Example

<script type="text/javascript"> 
$(document).ready(function(){
  $("button").click(function(){
    $("div").removeAttr("align");
  });
});
</script>
Online Try This Code Your Self....   »

  All jQuery with HTML Method References