.usmenu()

Previous Next

Creates a framework-independent, horizontally oriented dropdown menu on the basis of an HTML structure consisting of (nested) UL and LI elements into a horizontally oriented dropdown menu:

US_clip0005

 

Returns the HTML element containing the menu items.

The base HTML must have the following format:

<ul class="us-menu">

    <li class="us-menuline"><a>Home</a></li>

    <li class="us-menuline"><a>Companies</a></li>

    <li class="us-menuline"><a>Customers</a>

        <ul class="us-menu">

            <li class="us-menuline"><a>New Customer...</a></li>

            <li class="us-menuline"><a>Existing customers</a></li>

        </ul>

    </li>

    <li class="us-menuline"><a>Log out</a></li>

</ul>

Syntax

.usmenu()

Example

$(".usmenu").usmenu();

 

See also

Framework-independent function API