Dragneel
0
Q:

change css jquery

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

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

$("p").css("background-color", "yellow");
 
9
$('.name').css('color':'blue');
7
 $('h1').click(function () {
        $(this).css('color', 'blue')
    });
2
$(init);
    
function init() {
    $("h1").css("backgroundColor", "yellow");
    $("#myParagraph").css({"backgroundColor":"black","color":"white");
    $(".bordered").css("border", "1px solid black");
}
4
$('.ama').css('color','red');
5

New to Communities?

Join the community