Set Click Event On Leaf Node
i have this type of html :-
- Activities
- Physical1
- Cricket
- One Day<
- Cricket
- Physical1
Solution 1:
Sounds like you need to modify the HTML, Anyways try this:
$('li:not(:has(*))').click(function(){
$('#result').text($(this).text());
});
<divid="result"></div>
Post a Comment for "Set Click Event On Leaf Node"