Skip to main content
Removed meta information.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

I'm a tad late. lol. For reference, try this! It works!

jQuery("classNameofDiv").click(function() {   var contentPanelId = jQuery(this).attr("id");   alert(contentPanelId);   }); 

I'm a tad late. lol. For reference, try this! It works!

jQuery("classNameofDiv").click(function() {   var contentPanelId = jQuery(this).attr("id");   alert(contentPanelId);   }); 

For reference, try this! It works!

jQuery("classNameofDiv").click(function() { var contentPanelId = jQuery(this).attr("id"); alert(contentPanelId); }); 

I'm a tad late. lol. For reference, try this! It works!

jQuery("classNameofDiv").click(function() { var contentPanelId = jQuery(this).attr("id"); alert(classNameofDivcontentPanelId); }); 

I'm a tad late. lol. For reference, try this! It works!

jQuery("classNameofDiv").click(function() { var contentPanelId = jQuery(this).attr("id"); alert(classNameofDiv); }); 

I'm a tad late. lol. For reference, try this! It works!

jQuery("classNameofDiv").click(function() { var contentPanelId = jQuery(this).attr("id"); alert(contentPanelId); }); 
Source Link
Gemma
  • 1.9k
  • 1
  • 11
  • 2

I'm a tad late. lol. For reference, try this! It works!

jQuery("classNameofDiv").click(function() { var contentPanelId = jQuery(this).attr("id"); alert(classNameofDiv); });