Jquery selector question
- by fizzer
Hi,
I have a working selector but I just wondered whether there was another way I could write it. Here's the html structure:
THIS IS TEXT I WANT TO SELECT
item 1
item 2
item 3
I have a click event attached to the nested listitems. In the click event I am trying to select the anchor tag. I have used the follwing selector:
$(this).parents('li').children('a')
Is this the most efficient way of selecting the anchor tag?