on
Advance HTML
HTML
- Get link
- X
- Other Apps
.removeClass(className)
<h1>If you click on the below button, it will remove the <font color="blue">blue</font> color style from the paragraphs</h1>
<p class="badClass">I am styled with badClass</p>
<p class="badClass">If you remove badClass from me, I won't have style anymore!!!!.</p>
<button>Remove the "badClass" from all p elements</button>
$(document).ready(function(){
$("button").click(function(){
$("p").removeClass("badClass");
});
});
Comments
Post a Comment