jquery change css
snippet in javascript

jquery css

user6071

$('#element').css('display', 'block'); /* Single style */
$('#element').css({'display': 'block', 'background-color' : '#2ECC40'}); /* Multiple style */ 

jquery add style

user3507

//revising Ankur's answer
//Syntax:
$(selector).css({property-name:property-value});

//Example:
$('.bodytext').css({'color':'red'});

multiple css jquery

user818


$("p").css({"background-color": "yellow", "font-size": "200%"});
 

jquery change css

user1391


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

set css using jquery

user3978

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

Jquery .css

user3131

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