I use the following expression to select all the links in this ‘path’:
$J('#leftmenu li div a')
The problem is that inside i can have the following hierarchy:
<ul id='lefmenu'> <li><div><a href='#'>foo</a> <ul><li><div><a href='#'>subfoo</a> </li>/ul> </li> </ul>
Using this expression this selects foo and subfoo.
I would like the way to select only foo, that is to say the exact path I write in my expression, right now this is selecting all the ‘li div a’, inside the list, that is why it selects foo and subfoo.
Use
This will select only immediate children