add css in html jquery code example
Example 1: jquery add style
$(selector).css({property-name:property-value});
$('.bodytext').css({'color':'red'});
Example 2: how to set css style using jquery
$('#element').css('display', 'block');
$('#element').css({'display': 'block', 'background-color' : '#2ECC40'});
Example 3: set css using jquery
$('.name').css('color':'blue');
Example 4: edit css jquery
$('.ama').css('color','red');
Example 5: how to css in jquery
$(init);
function init() {
$("h1").css("backgroundColor", "yellow");
$("#myParagraph").css({ "backgroundColor": "black", "color": "white" });
$(".bordered").css("border", "1px solid black");
}