event.target.value
event.target.value
hi , let say i have alot of tag's on my html page like this
<html>
<span>
<div>first</div>
<span>
second
<span>third</span>
<span>fourth</span>
<div>fifth</div>
</span>
</span>
</html>
okay what i want to do is , if i click on each of them i just want to get the value of the tag . like if i clicked on the inner_span <span>third</span> just give me the value of third
im using $(event.target).text() but this give me the whole span's text or whole div's text. i just need one span text return that who im click on it thats it .
ty for any help .