Assuming you need to change a div's background-color by clicking a button,this code will save your life :)
<script type="text/javascript"> $(document).ready(function () { $('#Button1').click(function () { $("#page-title").css('background-color', '#ffffff'); $("#Button1").text = "New Text"; }); }); </script>