I need to select and find the html value of the H2 tag within a particular div which is clicked, this is what I'm trying right now but to no avail:
When the .square is clicked, I'm trying to run this:
$(this).find('h2').html();
and this is what the html looks like:
<div class="square" id="2"><h2>Title</h2><h3>Comment</h3></div>
What am I doing wrong?
Thanks