Answers for "jquery add css background color"

3

how to change the background color in jquery

$("#co").click(function(){
   $(this).css({"backgroundColor" : "blue"});
});
Posted by: Guest on July-09-2020
1

how to css in jquery

$(init);
    
function init() {
    $("h1").css("backgroundColor", "yellow");
    $("#myParagraph").css({ "backgroundColor": "black", "color": "white" });
    $(".bordered").css("border", "1px solid black");
}
Posted by: Guest on October-22-2020

Code answers related to "jquery add css background color"

Code answers related to "Javascript"

Browse Popular Code Answers by Language