Computer Science, asked by Umama2013, 1 year ago

How to remove an attribute from each tag using jQuery?

Answers

Answered by SnehaG
0

Answer: Use the jQuery removeAttr() methods

<title>jQuery Removing Attribute from HTML Element</title>

<script type="text/javascript">

$(document). ready(function() {

$(".remove-attr"). click(function(){

$("a"). removeAttr("href");

});

});

</script>

Similar questions