Answers for "how to remove attribute on click in jquery"

17

remove attribute jquery

$("button").click(() => {
  $("div").removeAttr("id"); // <div id='12' class='nice'></div> --> <div class='nice'></div>
});
Posted by: Guest on March-23-2020
0

remove attribute onclick jquery

$("...").attr("onclick", "").unbind("click");
Posted by: Guest on August-28-2021
0

jquery remove attribute

jQuery(document).ready(function($){
	$('.className').click(function(){
    	$('.targetElementClassName').removeAttr('title');
    });
});
Posted by: Guest on April-14-2022

Code answers related to "how to remove attribute on click in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language