I want to have an alert pop up that shows me the background of a table cell whenever i click on it. I just can\'t seem to find or figure out how to grab the background colo
You can do it easily by Jquery css() function
jQuery(document).ready(function(){ $(this).click(function () { var color = $(this).css("background-color"); alert(color); }); });
For more detail have a look at this example