You can use the jQuery removeAttr() method to remove the attributes from an HTML element.
In the following example when you click the "Remove Link" button it will remove the href attribute from the link. Let's try it out and see how this method works:
Use the jQuery
removeAttr()methodsYou can use the jQuery
removeAttr()method to remove the attributes from an HTML element.In the following example when you click the "Remove Link" button it will remove the
need an explanation for this answer? contact us directly to get an explanation for this answerhrefattribute from the link. Let's try it out and see how this method works: