How to remove an attribute from each tag using jQuery?
Answers
Answered by
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