Im trying now a long time to access the content of a div by click it.
The structure is like this:
<div class="note" id="DYNAMIC_ID">
<div class="headline">HEADLINE</div>
<div class="content">Content</div>
</div>
I need something like this:
$(".note").click(function(){
alert(this+".headline").text();
alert(this+".content").text();
});
I hope someone can help me with this problem.