Changing BackgroundColor HTML5/Windows Phone

Assuming you need to change a div's background-color by clicking a button,this code will save your life :)

Here:


<script type="text/javascript">
$(document).ready(function () {
$('#Button1').click(function () {
$("#page-title").css('background-color', '#ffffff');
$("#Button1").text = "New Text"; }); }); </script>