I'm trying to set up the Accordion widget and use it as a navigation
menu and it looks and works great. However, some of my headers don't
have any sub-content (se the first header in the sample code below),
so I'm wondering if there's a way to disable expanding of the empty
sub-content on some elements and have them follow the href instead.
Here's the code:
$("#foo").accordion({
autoHeight: false
});
<div id="foo">
<h3><a href="/">Home</a></h3>
<div></div>
<h3 id="mm2"><a href="/page.php?p=140&m=2">Header with sub-menu</a></
h3>
<div>
<ul>
<li><a href="/foo.php">Sub-menu item 1</a></li>
<li><a href="/bar.php">Sub-menu item 1</a></li>
</ul>
</div>
</div>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---