<body> <p id="target">This css method of jQuery. This method applies CSS to controls.</p> <button id="apply">Click ME!</button> <button onclick="location.reload()">Reset</button> </body>
$(document).ready(function() { $('#apply').click(function() { $('#target').css({'color':'red','font-weight':'bold','font-family':'comic sans ms'}); }); });