<body> <input type="text" id="text1" Value="This is textbox"> <br /> <br > <button id="myButton">Click Me</button> <button onclick="location.reload()">Reset</button> </body>
$(document).ready(function() { $("#myButton").click(function() { $(":text").css({'font-family':'Comic sans ms','font-weight':'bold'}); }); });