<!DOCTYPE html>
<html>
<head>
<title>jQuery toggleClass() method</title>
<script src="jquery-latest.min.js"></script>
<script>
$(document).ready(function() {
$("button").click(function(){
$("p").toggleClass("param");
});
});
</script>
<style type="text/css">
.param {
font: 16px Verdana, Arial;
font-weight: bold;
color: pink;
}
</style>
</head>
<body>
<p class="param">First paragraph star here</p>
<p class="param">Second paragraph star here</p>
<button>Click here to call toggleClass() method</button>
</body>
</html>