PDA

View Full Version : Grabbing Text



Deadweight
03-28-2014, 06:47 PM
I have a nav menu with a drop down menu like the one below:


<div id="nav"><ul>
<li>one</li>
<li>two</li>
<li>three
<ul>
<li>1-1</li>
<li>1-2</li>
</ul>
</li>
<li>Four</li>
</ul></div>

When i click on a li in the ul it wont give me the right text or index.
Any way i can get the certain index that is selected?

traq
03-28-2014, 09:25 PM
I'm not sure what you mean. Are you using some sort of javascript? are there hyperlinks in the list items?

Please show us all the relevant code, and describe what you are doing, what you expect to happen, and what actually happens.