Check out example codes for "change css jquery". It will help you in understanding the concepts better.

Code Example 1

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

Code Example 2

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

Code Example 3

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

Code Example 4

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

Code Example 5

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

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

Code Example 6

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

Learn ReactJs, React Native from akashmittal.com