Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

how to css in jquery

$(init);
    
function init() {
    $("h1").css("backgroundColor", "yellow");
    $("#myParagraph").css({ "backgroundColor": "black", "color": "white" });
    $(".bordered").css("border", "1px solid black");
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #css #jquery
ADD COMMENT
Topic
Name
9+2 =