Hi all,
I am trying to create an horizontal menu with an horizontal submenu and I would like to leave the submenu opened after a click.
Unfortunately I am not so good in jQuery and I need some help to create it.
Here is the link with the code + css: http://jsfiddle.net/IronFeast/8899x/

On jsFiddle the result has problems with the click, but on localhost is working great. Just I hope in some help for the jQuery code.
The code is in the header.php page, and it is loaded in all pages using <?php include("header.php"); ?>

Thank you in advance.

hey, you dont need javascript. check this out:
http://jsfiddle.net/8899x/83/

The reason the submenu was not remaining open was because of some padding on the main UL and LI items. I took that out... the A element is now display: block - and the padding should only be applied to this because it is the element that uses the :hover interaction.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.