diff options
Diffstat (limited to 'demos/menu/topalignmenu.html')
-rw-r--r-- | demos/menu/topalignmenu.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/demos/menu/topalignmenu.html b/demos/menu/topalignmenu.html index 7b7e052e4..62373ba9d 100644 --- a/demos/menu/topalignmenu.html +++ b/demos/menu/topalignmenu.html @@ -3,8 +3,8 @@ <head> <meta charset="utf-8"> <title>Menu Demo: Top-aligned Menu</title> - <link type="text/css" href="../demos.css" rel="stylesheet" /> - <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" /> + <link rel="stylesheet" href="../demos.css"> + <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"> <script src="../../jquery-1.7.2.js"></script> <script src="../../ui/jquery.ui.core.js"></script> <script src="../../ui/jquery.ui.widget.js"></script> @@ -12,18 +12,18 @@ <script src="../../ui/jquery.ui.menu.js"></script> <script> $(function() { - $("#topMenu").menu({ + $( "#menu" ).menu({ position: { of: "ul:has(a.ui-state-focus):last" } }); }); </script> <style> - .ui-menu { width: 200px; margin-bottom: 2em; } + .ui-menu { width: 200px; margin-bottom: 2em; } </style> </head> <body> -<ul id="topMenu"> +<ul id="menu"> <li><a href="#">Aberdeen</a></li> <li><a href="#">Ada</a></li> <li><a href="#">Adamsville</a></li> |