Editor Arrow Download Open
<!DOCTYPE html> <html> <head> <title>jQuery css() method</title> <script src="jquery-latest.min.js"></script> <script> $(document).ready(function(){ $("div").click(function(){ $("p").html($(this).css("background-color")); }); }); </script> </head> <body> <div style="width: 250px; height: 80px; background: #FF6633;">Click Me</div> <p>Here display the boxes background color.</p> </body> </html>
  Preview Arrow