mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-04 15:24:35 +01:00
40 lines
1.9 KiB
HTML
40 lines
1.9 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<title>jQuery MultiSelect Widget Demo</title>
|
||
|
<link rel="stylesheet" type="text/css" href="../jquery.multiselect.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="assets/style.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="assets/prettify.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/ui-lightness/jquery-ui.css" />
|
||
|
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
|
||
|
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>
|
||
|
<script type="text/javascript" src="../src/jquery.multiselect.js"></script>
|
||
|
<script type="text/javascript" src="assets/prettify.js"></script>
|
||
|
</head>
|
||
|
<body onload="prettyPrint();">
|
||
|
|
||
|
<h2>Pre-selected & pre-disabled options</h2>
|
||
|
<p>Options one, three, and four have the <code class="prettyprint">selected="selected"</code> attribute and are checked by default. Options five and six have the <code class="prettyprint">disabled="disabled"</code> attribute.
|
||
|
When the widget is initialized on the select, both attribute types are honored.</p>
|
||
|
|
||
|
<form>
|
||
|
<p>
|
||
|
<select name="example-presets" multiple="multiple" size="5">
|
||
|
<option value="option1" selected="selected">Option 1</option>
|
||
|
<option value="option2">Option 2</option>
|
||
|
<option value="option3" selected="selected">Option 3</option>
|
||
|
<option value="option4" selected="selected">Option 4</option>
|
||
|
<option value="option5" disabled="disabled">Option 5</option>
|
||
|
<option value="option6" disabled="disabled">Option 6</option>
|
||
|
<option value="option7">Option 7</option>
|
||
|
<option value="option8">Option 8</option>
|
||
|
<option value="option9">Option 9</option>
|
||
|
</select>
|
||
|
</p>
|
||
|
</form>
|
||
|
|
||
|
<script type="text/javascript">$("select").multiselect();</script>
|
||
|
</body>
|
||
|
</html>
|