remove attribute jquery
$("button").click(() => {
$("div").removeAttr("id"); // <div id='12' class='nice'></div> --> <div class='nice'></div>
});
remove attribute jquery
$("button").click(() => {
$("div").removeAttr("id"); // <div id='12' class='nice'></div> --> <div class='nice'></div>
});
jquery remove class
$("button").click(function(){
$("p").removeClass("intro");
});
//Html code example:
<p class="red highlight">test1</p>
<p class="red highlight marked">test2</p>
<p class="red highlight">test3</p>
<p class="red highlight">test4</p>
// remove all highlight class from p tag
<script>
$( "p" ).removeClass( "highlight" )
</script>
// example $(element).removeClass( "myClass yourClass" )
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us