Question and answer is powered by AnsPress.io
The removeAttr() method removes one or more attributes from the selected elements.
$(selector).removeAttr(attribute)
$(‘button’).click(function(){
$(‘p’).removeAttr(‘style’);
});
Here we are removing the style attribute from p tag , when button is clicked.