Creating selector for ul/li's
Have a hard time finding the best combo of selectors to get the text value of a li > a parent of a child ul > li choosen. In example below when I click "Add Files" I need to get the parent value of "File Links":
- <ul class="dropdown-menu appNavBar">
- <li id="appNav4" class="appNav">
- <a class="trigger left-caret">File Links</a>
- <ul class="dropdown-menu sub-menu" style="display: block;">
- <li id="fe3">
- <a id="lnk_fe3" href=" index.cfm/fileexchange/main/home" defaulttarget="#mainContent" class="retarget">
- Add Files
- </a>
- </li>
- </ul>
- </li>
- </ul>