61
rated 0 times
[
63]
[
2]
/ answers: 1 / hits: 53474
/ 12 Years ago, wed, may 2, 2012, 12:00:00
Possible Duplicate:
Select inner text (jQuery)
I have a span:
<span class=test> target_string </span>
And the event, that is fired on click on any element of the page.
$('body').click(function(event){
if ($(event.target).attr('class') == 'test'){
alert(???);
}
}
How can I obtain target_string value?
More From » jquery