To access the background color of a clicked div.
<html> <head> <script type="text/javascript" src="js/jquery-1.3.2.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("div").click(function () { var color = $(this).css("background-color"); alert(color); }); }); </script> </head> <body> <body> <div style="background-color:blue;">asdf</div> </body> </html>