Getting Started with the JavaScript Menu

The Menu widget allows you to choose one of many possible options. The underling element from which the widget is initialized can be a UL or DIV element. In order to render the component on a webpage, you need to:
1. Include references to all required scripts. Make sure you include the CSS file for your preferred theme.
2. Add a UL or DIV element to render the widget.
3. Initialize the widget.

<!DOCTYPE html>
<title>Shield DropDown</title>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="css/light/all.min.css" />
<script src="js/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="js/shieldui-all.min.js" type="text/javascript"></script>

<ul id="menu1">
	<li data-href="#file">
		<li><a href="#xxx">Open</a></li>
		<li><a href="#yyy">Save</a></li>
		<li><a href="#zzz">Exit</a></li>
	<li data-role="separator"></li>
	    <a href="#edit">Edit</a>
		<li href="#copy">Copy</li>
		<li data-class="css-class">Paste</li>
	<li disabled="disabled">
	    <div>Disabled Item</div>
		<li>Disabled 1</li>
		<li>Disabled 2</li>
		<li>Disabled 3</li>
	<li data-icon-url="computer.png">
	    <div>Mega Menu</div>
		<li data-class="customcls">
		    <div style="width:400px;">
			<p><a href="/">Shield UI Ltd.</a></p>
			<p><a href="/">Monsters, Inc.</a></p>
			<p>One paragraph</p>
			<p>Another paragraph</p>
	<li data-icon-cls="xxx-icon-cls" data-class="right" data-href="#admin">

<script type="text/javascript">
        cls: "topmenu",
        events: {
            click: function(e) {


To see an example of the control in action, along with all the required code, please refer to the following example.