<body>
<script>
$elem = $(".cRed");
$elem.addClass("cBrown").removeClass(".cRed");
</script>
<div class="cRed cBlue">Something</div>
<script>
$elem = $(".cRed");
$elem.toggleClass("cBlue cBrown");
$elem.toggleClass("cRed cBrown");
</script>
</body>
What classes will be added to <div> element after the page fully loaded?
Login in to like
Login in to comment