Skip to content
Browse files

Selectmenu: basic implementation

  • Loading branch information
fnagel committed Sep 21, 2011
1 parent 25f2113 commit ecd8ea4a1c40b6056381e920dd03add3db52d4dd
@@ -0,0 +1,67 @@
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>jQuery UI Selectmenu - Default functionality</title>
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
<script src="../../jquery-1.6.2.js"></script>
<script src="../../ui/jquery.ui.core.js"></script>
<script src="../../ui/jquery.ui.widget.js"></script>
<script src="../../ui/jquery.ui.position.js"></script>
<script src="../../ui/jquery.ui.button.js"></script>
<script src="../../ui/"></script>
<script src="../../ui/jquery.ui.selectmenu.js"></script>
<link rel="stylesheet" href="../demos.css">
$(function() {
form { margin: 200px 0 0 0; }
fieldset { border: 0; }
select { width: 200px; }

<div class="demo">

<form action="#">
<label for="speedA">Select a Speed:</label>
<select name="speedA" id="speedA">
<option value="Slower">Slower</option>
<option value="Slow" selected="selected">Slow</option>
<option value="Medium">Medium</option>
<option value="Fast">Fast</option>
<option value="Faster">Faster</option>
<br />
<br />
<br />
<label for="filesC">Select a file:</label>
<select name="filesC" id="filesC">
<optgroup label="scripts">
<option value="jquery">jQuery.js</option>
<option value="jqueryui">ui.jQuery.js</option>
<optgroup label="Label with space">
<option value="somefile">Some unknown file</option>
<option value="someotherfile">Some other file</option>

</div><!-- End demo -->

<div class="demo-description">
<p>The Autocomplete widgets provides suggestions while you type into the field. Here the suggestions are tags for programming languages, give "ja" (for Java or JavaScript) a try.</p>
<p>The datasource is a simple JavaScript array, provided to the widget using the source-option.</p>
</div><!-- End demo-description -->

@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>jQuery UI Selectmenu Demos</title>
<link rel="stylesheet" href="../demos.css">
<div class="demos-nav">
<li class="demo-config-on"><a href="default.html">Default functionality</a></li>
@@ -19,6 +19,7 @@
@import url("jquery.ui.progressbar.css");
@import url("jquery.ui.resizable.css");
@import url("jquery.ui.selectable.css");
@import url("jquery.ui.selectmenu.css");
@import url("jquery.ui.slider.css");
@import url("jquery.ui.spinner.css");
@import url("jquery.ui.tabs.css");
@@ -0,0 +1,16 @@
* jQuery UI Selectmenu @VERSION
* Copyright 2011, AUTHORS.txt (
* Dual licensed under the MIT or GPL Version 2 licenses.

.ui-selectmenu-menu { padding: 0; margin: 0; position:absolute; top: 0; display: none; }
.ui-selectmenu-menu .ui-menu { padding: 0; }
.ui-selectmenu-open { display: block; }

.ui-button span.ui-icon { right: 0.5em; left: auto; }
.ui-button span.ui-button-text { text-align: left; padding: 0.4em 2.1em 0.4em 1em }

0 comments on commit ecd8ea4

Please sign in to comment.
You can’t perform that action at this time.