Hey,

i want to use the jquery accordion plug-in for a list created by the
wordpress wp_list_pages function.

this is the html:

<ul id='navigation'>

<li class="page_item page-item-23"><a href="">wanted item</a>
<ul>
   <li class="page_item page-item-25"><a href="">unwanted item</a></
li>
   <li class="page_item page-item-85"><a href="" >unwanted item</a></
li>
</ul>
</li>
<li class="page_item page-item-41 current_page_item"><a href="">and so
on</a>

and so on....

my jquery selector which seems to be right: $(' #navigation  > li >
a') (console.log says it's right... )

my accordion code:

$(function () {
       console.log($(' #navigation  > li >  a'));
       // prints the wanted item
       $('ul#navigation').accordion({
           header: '#navigation  > li >  a',
           event: 'mouseover'
       });
   });

The main problem is that every sub-link is a 'small' accordion
although  console.log($(' #navigation  > li >  a')); returns only the
first level links...

thanks for helping and regards Volkan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to