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