how to change the background color in jquery

138

change background colour jquery -

$(document).ready(function() {
  $("button").mouseover(function() {
    var p = $("p#44.test").css("background-color", "yellow");
    p.hide(1500).show(1500);
    p.queue(function() {
      p.css("background-color", "red");
    });
  });
});

how to change the background color in jquery -

$("#co").click(function(){
   $(this).css({"backgroundColor" : "blue"});
});

Comments

Submit
0 Comments