set css using jquery
snippet in javascript

change css jquery

user1463


$("p").css("background-color", "yellow");
 

set css using jquery

user4445

$('.name').css('color':'blue');

Jquery .css

user7422

$(init);
    
function init() {
    $("h1").css("backgroundColor", "yellow");
    $("#myParagraph").css({"backgroundColor":"black","color":"white");
    $(".bordered").css("border", "1px solid black");
}

edit css jquery

user5909

$('.ama').css('color','red');