$('body').css('background', 'red'); // this is a test demo alert($('body').css('background-color')); $('body').css('background', '#e8e8e8');