Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>EDITED TO MEET NEEDS EXPLAINED ON COMMENTS</strong></p> <p>After understanding what you need (please, next time try to explain your question a little better), here is a and updated <a href="http://jsfiddle.net/zQU7H/6/" rel="nofollow">Fiddle</a> that mgiht help you. In this case I supossed (correct me if I'm wrong) that ou don't use link with hashes in your site, and what it does is search for a hash at url, this hash, should be equal to the title of the a element (you can highlight it) you'll like to show submenu of. Example:</p> <p><code>&lt;a title="Bestilling" href="http://www.example.com/mypage.html#Handelsbetingelser"&gt;&lt;/a&gt;</code></p> <p>You can do this manually or with jquery:</p> <pre><code>$("#productNav ul li").each(function(){ var title = $(this).children("a").attr("title"); $(this).find("li a").attr("href",function(index,oldattr){ return oldattr+"#"+title; }); }); </code></pre> <p>This code will add a hashtag and the title menu parent.</p> <p><strong>ORIGINAL</strong></p> <p>I don't know if I understood your question right, but in case it helps, I've updated khaled_webdevs Fiddle: <a href="http://jsfiddle.net/zQU7H/5/" rel="nofollow">http://jsfiddle.net/zQU7H/5/</a>.</p> <p>It just show one submenu at a time, and changes it if another one should be shown. On this example I made the first element with submenu to be shown, but you can remove that and make any submenu you wan't to show at first by addign to it the class "current".</p> <p>Hope this helps.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload