Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-07-2008, 07:05 PM   PM User | #1
logictrap
Regular Coder

 
logictrap's Avatar
 
Join Date: Apr 2008
Posts: 155
Thanks: 11
Thanked 3 Times in 3 Posts
logictrap is an unknown quantity at this point
Need help traversing an unordered list with jQuery

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:

Code:
<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>
__________________

Which came first - the chicken or the egg? The egg... [ticket closed]
If a tree falls... does it make a sound? Yes.............. [ticket closed]
logictrap is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:00 AM.


Advertisement
Log in to turn off these ads.