Get background color of div in jquery

by satheeshkumar 2013-10-10 11:55:49

Get background color of div in jquery ,


$("#yourdivid").click(function(){
var backColor = $(this).css("background-color");
alert(backColor);
});


by using the above code you can get the background color of a particular div...
826
like
0
dislike
0
mail
flag

You must LOGIN to add comments