hello,
I have the following setup:
jquery:
HTML Code:
$('.taak').click(function(){
lalala = $(this).children("span").html();
alert(lalala);
});
html:
HTML Code:
<table class="taak"><tr><td>
<span>mycontent</span>
</td></tr></table>
I would like to get the value of the span element within the table. Currently the alert says "null".
What is wrong?
thanks!
Matt
Last edited by killerwhale65; 11-05-2009 at 09:22 AM..
|