...

View Full Version : Need help traversing an unordered list with jQuery



logictrap
11-07-2008, 07:05 PM
How do I access just the titles (ie 'Title 1', 'Title 2')? Every method I tried also includes the content.

I tried using: not('[li]") & parent()

This is an example list structure:


<ul id="mylist">
<li> Title 1
<ul>
<li>Content 1</li>
</ul>
</li>
<li>Title 2
<ul>
<li>Content 2</li>
</ul>
</li>
<li>Title 3
<ul>
<li>Content 3</li>
</ul>
</li>
</ul>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum