-
Notifications
You must be signed in to change notification settings - Fork 62
/
index.html
780 lines (746 loc) · 41.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery Multiselect 2.0 Example Page</title>
<link type="text/css" href="css/common.css" rel="stylesheet" />
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
<link type="text/css" href="css/jquery.uix.multiselect.css" rel="stylesheet" />
<script src="http://code.jquery.com/jquery-1.9.0.min.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/jquery.uix.multiselect.js"></script>
<script type="text/javascript" src="js/locales/jquery.uix.multiselect_de.js"></script>
<script type="text/javascript" src="js/locales/jquery.uix.multiselect_es.js"></script>
<script type="text/javascript" src="js/locales/jquery.uix.multiselect_et.js"></script>
<script type="text/javascript" src="js/locales/jquery.uix.multiselect_fr.js"></script>
<script type="text/javascript" src="js/locales/jquery.uix.multiselect_nl.js"></script>
<script type="text/javascript" src="js/locales/jquery.uix.multiselect_pt.js"></script>
<script type="text/javascript" src="js/locales/jquery.uix.multiselect_ru.js"></script>
<script type="text/javascript" src="js/locales/jquery.uix.multiselect_sv.js"></script>
<script type="text/javascript" src="js/jquery.themeswitcher.min.js"></script>
<script type="text/javascript">
$(function() {
//navigator.userLanguage = 'fr';
if ($.fn.themeswitcher) {
$('#switcher')
.css('padding-bottom', '8px')
.before('<h4>Use the themeroller to dynamically change look and feel</h4>')
.themeswitcher({imgpath: "images/"});
}
var defaultOptions = {
//availableListPosition: 'bottom',
moveEffect: 'blind',
moveEffectOptions: {direction:'vertical'},
moveEffectSpeed: 'fast'
};
var widgets = {
'simple': $.extend($.extend({}, defaultOptions), {
sortMethod: 'standard',
sortable: true
}),
'disabled': $.extend({}, defaultOptions),
'groups': $.extend($.extend({}, defaultOptions), {
sortMethod: 'standard',
showEmptyGroups: true,
sortable: true
}),
'dynamic': $.extend({}, defaultOptions)
};
$.each(widgets, function(k, i) {
$('#multiselect_'+k).multiselect(i).on('multiselectChange', function(evt, ui) {
var values = $.map(ui.optionElements, function(opt) { return $(opt).attr('value'); }).join(', ');
$('#debug_'+k).prepend( $('<div></div>').text('Multiselect change event! ' + (ui.optionElements.length == $('#multiselect_'+k).find('option').size() ? 'all ' : '') + (ui.optionElements.length + ' value' + (ui.optionElements.length > 1 ? 's were' : ' was')) + ' ' + (ui.selected ? 'selected' : 'deselected') + ' (' + values + ')') );
}).on('multiselectSearch', function(evt, ui) {
$('#debug_'+k).prepend( $('<div></div>').text('Multiselect beforesearch event! searching for "' + ui.term + '"') );
}).closest('form').submit(function(evt) {
evt.preventDefault(); evt.stopPropagation();
$('#debug_'+k).prepend( $('<div></div>').text("Submit query = " + $(this).serialize() ) );
return false;
});
$('#btnToggleOriginal_'+k).click(function() {
var _m = $('#multiselect_'+k);
if (_m.is(':visible')) {
_m.next().toggle().end().toggleClass('uix-multiselect-original').multiselect('refresh');
} else {
_m.toggleClass('uix-multiselect-original').next().toggle();
}
return false;
});
$('#btnSearch_'+k).click(function() {
$('#multiselect_'+k).multiselect('search', $('#txtSearch_'+k).val());
});
});
$('#btnGenerate_dynamic').click(function() {
var start = new Date().getTime();
var temp = $('<select></select>');
var count = parseInt($('#txtGenerate_dynamic').val());
for (var i=0; i<count; i++) {
temp.append($('<option></option>').val('item'+(i+1)).text("Item " + (i+1)));
}
$('#multiselect_dynamic').empty().html(temp.html()).multiselect('refresh', function() {
var diff = new Date().getTime() - start;
if (diff > 1000) {
diff /= 1000;
if (diff > 60) {
diff = (diff / 60) + " min";
} else {
diff += " sec";
}
} else {
diff += " ms";
}
$('#debug_dynamic').prepend($('<div></div>').text("Generated " + count + " options in " + diff));
});
});
$('#selectLocale').change(function() {
$('.multiselect').multiselect('locale', $(this).val() );
});
// build locale options
for (var locale in $.uix.multiselect.i18n) {
$('#selectLocale').append($('<option></option>').attr('value', locale).text(locale.length == 0 ? '(default)' : locale));
}
$('#selectLocale').val($('#multiselect').multiselect('locale'));
});
</script>
<style type="text/css">
.multiselect {
width: 450px;
height: 200px;
}
#locales { padding-bottom:16px; }
div.debug_uiControls {
margin-top: 16px;
}
div.debug_log {
height: 100px;
overflow: auto;
border: 1px solid black;
padding: 8px;
margin-top: 16px;
}
.example-container {
overflow:visible;
width:100%;
}
</style>
</head>
<body>
<div id="content">
<a href="https://github.com/yanickrochon/jquery.uix.multiselect">
<img style="position: fixed; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" alt="Fork me on GitHub">
</a>
<h1>Welcome to the jQuery Multiselect 2.0 Widget !</h1>
<div id="switcher"></div>
<div id="locales">
<label for="selectLocale">Change locale : </label><select id="selectLocale" name="selectLocale"></select>
</div>
<div id="usage_simple" style="position:relative;">
<form action="" method="get">
<h2>Simple usage</h2>
<div class="example-container ui-helper-clearfix">
<select id="multiselect_simple" name="multiselect" class="multiselect" multiple="multiple" style="width:60%">
<option value="ABW">Aruba</option>
<option value="AFG">Afghanistan</option>
<option value="AGO">Angola</option>
<option value="AIA">Anguilla</option>
<option value="ALA">Åland Islands</option>
<option value="ALB">Albania</option>
<option value="AND">Andorra</option>
<option value="ANT">Netherlands Antilles</option>
<option value="ARE">United Arab Emirates</option>
<option value="ARG">Argentina</option>
<option value="ARM">Armenia</option>
<option value="ASM">American Samoa</option>
<option value="ATA">Antarctica</option>
<option value="ATF">French Southern Territories</option>
<option value="ATG">Antigua and Barbuda</option>
<option value="AUS">Australia</option>
<option value="AUT">Austria</option>
<option value="AZE">Azerbaijan</option>
<option value="BDI">Burundi</option>
<option value="BEL">Belgium</option>
<option value="BEN">Benin</option>
<option value="BFA">Burkina Faso</option>
<option value="BGD">Bangladesh</option>
<option value="BGR">Bulgaria</option>
<option value="BHR">Bahrain</option>
<option value="BHS">Bahamas</option>
<option value="BIH">Bosnia and Herzegovina</option>
<option value="BLM">Saint Barthélemy</option>
<option value="BLR">Belarus</option>
<option value="BLZ">Belize</option>
<option value="BMU">Bermuda</option>
<option value="BOL">Bolivia</option>
<option value="BRA">Brazil</option>
<option value="BRB">Barbados</option>
<option value="BRN">Brunei Darussalam</option>
<option value="BTN">Bhutan</option>
<option value="BVT">Bouvet Island</option>
<option value="BWA">Botswana</option>
<option value="CAF">Central African Republic</option>
<option value="CAN">Canada</option>
<option value="CCK">Cocos Islands</option>
<option value="CHE">Switzerland</option>
<option value="CHL">Chile</option>
<option value="CHN">China</option>
<option value="CIV">Côte d'Ivoire</option>
<option value="CMR">Cameroon</option>
<option value="COD">Congo, The Democratic Republic of the</option>
<option value="COG">Congo</option>
<option value="COK">Cook Islands</option>
<option value="COL">Colombia</option>
<option value="COM">Comoros</option>
<option value="CPV">Cape Verde</option>
<option value="CRI">Costa Rica</option>
<option value="CUB">Cuba</option>
<option value="CXR">Christmas Island</option>
<option value="CYM">Cayman Islands</option>
<option value="CYP">Cyprus</option>
<option value="CZE">Czech Republic</option>
<option value="DEU">Germany</option>
<option value="DJI">Djibouti</option>
<option value="DMA">Dominica</option>
<option value="DNK">Denmark</option>
<option value="DOM" selected="selected">Dominican Republic</option>
<option value="DZA">Algeria</option>
<option value="ECU">Ecuador</option>
<option value="EGY">Egypt</option>
<option value="ERI" selected="selected">Eritrea</option>
<option value="ESH">Western Sahara</option>
<option value="ESP">Spain</option>
<option value="EST">Estonia</option>
<option value="ETH">Ethiopia</option>
<option value="FIN">Finland</option>
<option value="FJI">Fiji</option>
<option value="FLK">Falkland Islands</option>
<option value="FRA">France</option>
<option value="FRO">Faroe Islands</option>
<option value="FSM">Micronesia, Federated States of</option>
<option value="GAB">Gabon</option>
<option value="GBR">United Kingdom</option>
<option value="GEO">Georgia</option>
<option value="GGY">Guernsey</option>
<option value="GHA">Ghana</option>
<option value="GIB">Gibraltar</option>
<option value="GIN">Guinea</option>
<option value="GLP">Guadeloupe</option>
<option value="GMB">Gambia</option>
<option value="GNB">Guinea-Bissau</option>
<option value="GNQ">Equatorial Guinea</option>
<option value="GRC">Greece</option>
<option value="GRD">Grenada</option>
<option value="GRL">Greenland</option>
<option value="GTM">Guatemala</option>
<option value="GUF">French Guiana</option>
<option value="GUM">Guam</option>
<option value="GUY">Guyana</option>
<option value="HKG">Hong Kong</option>
<option value="HMD" selected="selected">Heard Island and McDonald Islands</option>
<option value="HND">Honduras</option>
<option value="HRV">Croatia</option>
<option value="HTI" selected="selected">Haiti</option>
<option value="HUN">Hungary</option>
<option value="IDN">Indonesia</option>
<option value="IMN">Isle of Man</option>
<option value="IND">India</option>
<option value="IOT">British Indian Ocean Territory</option>
<option value="IRL">Ireland</option>
<option value="IRN">Iran, Islamic Republic of</option>
<option value="IRQ">Iraq</option>
<option value="ISL">Iceland</option>
<option value="ISR">Israel</option>
<option value="ITA">Italy</option>
<option value="JAM">Jamaica</option>
<option value="JEY">Jersey</option>
<option value="JOR">Jordan</option>
<option value="JPN">Japan</option>
<option value="KAZ">Kazakhstan</option>
<option value="KEN">Kenya</option>
<option value="KGZ">Kyrgyzstan</option>
<option value="KHM">Cambodia</option>
<option value="KIR">Kiribati</option>
<option value="KNA">Saint Kitts and Nevis</option>
<option value="KOR">Korea, Republic of</option>
<option value="KWT">Kuwait</option>
<option value="LAO">Lao, People's Democratic Republic</option>
<option value="LBN">Lebanon</option>
<option value="LBR">Liberia</option>
<option value="LBY">Libyan Arab Jamahiriya</option>
<option value="LCA">Saint Lucia</option>
<option value="LIE">Liechtenstein</option>
<option value="LKA">Sri Lanka</option>
<option value="LSO">Lesotho</option>
<option value="LTU">Lithuania</option>
<option value="LUX">Luxembourg</option>
<option value="LVA">Latvia</option>
<option value="MAC">Macau</option>
<option value="MAF" selected="selected">Saint Martin</option>
<option value="MAR">Morocco</option>
<option value="MCO">Monaco</option>
<option value="MDA">Moldova, Republic of</option>
<option value="MDG">Madagascar</option>
<option value="MDV">Maldives</option>
<option value="MEX">Mexico</option>
<option value="MHL">Marshall Islands</option>
<option value="MKD">Macedonia, The Former Yugoslav Republic of</option>
<option value="MLI">Mali</option>
<option value="MLT">Malta</option>
<option value="MMR">Myanmar</option>
<option value="MNE">Montenegro</option>
<option value="MNG">Mongolia</option>
<option value="MNP">Northern Mariana Islands</option>
<option value="MOZ">Mozambique</option>
<option value="MRT" selected="selected">Mauritania</option>
<option value="MSR">Montserrat</option>
<option value="MTQ">Martinique</option>
<option value="MUS">Mauritius</option>
<option value="MWI">Malawi</option>
<option value="MYS">Malaysia</option>
<option value="MYT" selected="selected">Mayotte</option>
<option value="NAM" selected="selected">Namibia</option>
<option value="NCL" selected="selected">New Caledonia</option>
<option value="NER">Niger</option>
<option value="NFK">Norfolk Island</option>
<option value="NGA">Nigeria</option>
<option value="NIC">Nicaragua</option>
<option value="NIU">Niue</option>
<option value="NLD">Netherlands</option>
<option value="NOR">Norway</option>
<option value="NPL">Nepal</option>
<option value="NRU">Nauru</option>
<option value="NZL">New Zealand</option>
<option value="OMN">Oman</option>
<option value="PAK">Pakistan</option>
<option value="PAN">Panama</option>
<option value="PCN">Pitcairn</option>
<option value="PER">Peru</option>
<option value="PHL">Philippines</option>
<option value="PLW">Palau</option>
<option value="PNG">Papua New Guinea</option>
<option value="POL">Poland</option>
<option value="PRI">Puerto Rico</option>
<option value="PRK">Korea, Democratic People's Republic of</option>
<option value="PRT" selected="selected">Portugal</option>
<option value="PRY">Paraguay</option>
<option value="PSE">Palestinian Territory</option>
<option value="PYF">French Polynesia</option>
<option value="QAT">Qatar</option>
<option value="REU">Réunion</option>
<option value="ROU">Romania</option>
<option value="RUS">Russian Federation</option>
<option value="RWA">Rwanda</option>
<option value="SAU">Saudi Arabia</option>
<option value="SDN">Sudan</option>
<option value="SEN">Senegal</option>
<option value="SGP">Singapore</option>
<option value="SGS">South Georgia and the South Sandwich Islands</option>
<option value="SHN">Saint Helena</option>
<option value="SJM">Svalbard and Jan Mayen</option>
<option value="SLB">Solomon Islands</option>
<option value="SLE">Sierra Leone</option>
<option value="SLV">El Salvador</option>
<option value="SMR">San Marino</option>
<option value="SOM">Somalia</option>
<option value="SPM">Saint Pierre and Miquelon</option>
<option value="SRB" selected="selected">Serbia</option>
<option value="STP">Sao Tome and Principe </option>
<option value="SUR">Suriname</option>
<option value="SVK">Slovakia</option>
<option value="SVN">Slovenia</option>
<option value="SWE">Sweden</option>
<option value="SWZ">Swaziland</option>
<option value="SYC" selected="selected">Seychelles</option>
<option value="SYR">Syrian Arab Republic</option>
<option value="TCA">Turks and Caicos Islands</option>
<option value="TCD">Chad</option>
<option value="TGO">Togo</option>
<option value="THA">Thailand</option>
<option value="TJK">Tajikistan</option>
<option value="TKL">Tokelau</option>
<option value="TKM">Turkmenistan</option>
<option value="TLS">Timor-Leste</option>
<option value="TON">Tonga</option>
<option value="TTO" selected="selected">Trinidad and Tobago</option>
<option value="TUN">Tunisia</option>
<option value="TUR">Turkey</option>
<option value="TUV">Tuvalu</option>
<option value="TWN">Taiwan</option>
<option value="TZA">Tanzania, United Republic of</option>
<option value="UGA">Uganda</option>
<option value="UKR">Ukraine</option>
<option value="UMI">United States Minor Outlying Islands</option>
<option value="URY">Uruguay</option>
<option value="USA">United States</option>
<option value="UZB">Uzbekistan</option>
<option value="VAT">Holy See (Vatican City State)</option>
<option value="VCT">Saint Vincent and the Grenadines</option>
<option value="VEN">Venezuela</option>
<option value="VGB">Virgin Islands, British</option>
<option value="VIR">Virgin Islands, U.S.</option>
<option value="VNM">Viet Nam</option>
<option value="VUT">Vanuatu</option>
<option value="WLF">Wallis and Futuna</option>
<option value="WSM">Samoa</option>
<option value="YEM">Yemen</option>
<option value="ZAF" selected="selected">South Africa</option>
<option value="ZMB">Zambia</option>
<option value="ZWE">Zimbabwe</option></select>
</div>
<div class="debug_uiControls">
<button id="btnToggleOriginal_simple">Toggle original element</button>
<input type="text" id="txtSearch_simple" size="15" />
<button id="btnSearch_simple">Search</button>
<input type="submit" value="Submit" />
</div>
</form>
<div id="debug_simple" class="debug_log"></div>
</div>
<div id="usage_disabled">
<form action="" method="get">
<h2>Disabled options</h2>
<div class="example-container ui-helper-clearfix">
<select id="multiselect_disabled" name="multiselect" class="multiselect" multiple="multiple">
<option value="And">Andromeda</option>
<option value="Ant" disabled="disabled">Antlia</option>
<option value="Aps" disabled="disabled">Apus</option>
<option value="Aqr">Aquarius</option>
<option value="Aql">Aquila</option>
<option value="Ara" disabled="disabled">Ara</option>
<option value="Ari">Aries</option>
<option value="Aur">Auriga</option>
<option value="Boo">Bootes</option>
<option value="Cae" disabled="disabled">Caelum</option>
<option value="Cam">Camelopardalis</option>
<option value="Cnc">Cancer</option>
<option value="CVn">Canes Venatici</option>
<option value="CMa" disabled="disabled">Canis Major</option>
<option value="CMi" disabled="disabled">Canis Minor</option>
<option value="Cap">Capricornus</option>
<option value="Car">Carina</option>
<option value="Cas">Cassiopeia</option>
<option value="Cen">Centaurus</option>
<option value="Cep">Cepheus</option>
<option value="Cet">Cetus</option>
<option value="Cha" disabled="disabled">Chamaleon</option>
<option value="Cir" disabled="disabled">Circinus</option>
<option value="Col" disabled="disabled">Columba</option>
<option value="Com" disabled="disabled">Coma Berenices</option>
<option value="CrA" disabled="disabled">Corona Australis</option>
<option value="CrB" disabled="disabled">Corona Borealis</option>
<option value="Crv" disabled="disabled">Corvus</option>
<option value="Crt" disabled="disabled">Crater</option>
<option value="Cru" disabled="disabled">Crux</option>
<option value="Cyg">Cygnus</option>
<option value="Del" disabled="disabled">Delphinus</option>
<option value="Dor" disabled="disabled">Dorado</option>
<option value="Dra">Draco</option>
<option value="Equ" disabled="disabled">Equuleus</option>
<option value="Eri">Eridanus</option>
<option value="For" disabled="disabled">Fornax</option>
<option value="Gem">Gemini</option>
<option value="Gru" disabled="disabled">Grus</option>
<option value="Her">Hercules</option>
<option value="Hor" disabled="disabled">Horologium</option>
<option value="Hya">Hydra</option>
<option value="Hyi" disabled="disabled">Hydrus</option>
<option value="Ind" disabled="disabled">Indus</option>
<option value="Lac" disabled="disabled">Lacerta</option>
<option value="Leo">Leo</option>
<option value="LMi" disabled="disabled">Leo Minor</option>
<option value="Lep" disabled="disabled">Lepus</option>
<option value="Lib">Libra</option>
<option value="Lup" disabled="disabled">Lupus</option>
<option value="Lyn">Lynx</option>
<option value="Lyr" disabled="disabled">Lyra</option>
<option value="Men" disabled="disabled">Mensa</option>
<option value="Mic" disabled="disabled">Microscopium</option>
<option value="Mon">Monoceros</option>
<option value="Mus" disabled="disabled">Musca</option>
<option value="Nor" disabled="disabled">Norma</option>
<option value="Oct" disabled="disabled">Octans</option>
<option value="Oph">Ophiucus</option>
<option value="Ori">Orion</option>
<option value="Pav" disabled="disabled">Pavo</option>
<option value="Peg">Pegasus</option>
<option value="Per">Perseus</option>
<option value="Phe">Phoenix</option>
<option value="Pic" disabled="disabled">Pictor</option>
<option value="Psc">Pisces</option>
<option value="PsA" disabled="disabled">Pisces Austrinus</option>
<option value="Pup">Puppis</option>
<option value="Pyx" disabled="disabled">Pyxis</option>
<option value="Ret" disabled="disabled">Reticulum</option>
<option value="Sge" disabled="disabled">Sagitta</option>
<option value="Sgr">Sagittarius</option>
<option value="Sco">Scorpius</option>
<option value="Scl">Sculptor</option>
<option value="Sct" disabled="disabled">Scutum</option>
<option value="Ser">Serpens</option>
<option value="Sex" disabled="disabled">Sextans</option>
<option value="Tau">Taurus</option>
<option value="Tel" disabled="disabled">Telescopium</option>
<option value="Tri" disabled="disabled">Triangulum</option>
<option value="TrA" disabled="disabled">Triangulum Australe</option>
<option value="Tuc" disabled="disabled">Tucana</option>
<option value="UMa">Ursa Major</option>
<option value="UMi" disabled="disabled">Ursa Minor</option>
<option value="Vel">Vela</option>
<option value="Vir">Virgo</option>
<option value="Vol" disabled="disabled">Volans</option>
<option value="Vul" disabled="disabled">Vulpecula</option></select>
</div>
<div class="debug_uiControls">
<button id="btnToggleOriginal_disabled">Toggle original element</button>
<input type="text" id="txtSearch_disabled" size="15" />
<button id="btnSearch_disabled">Search</button>
<input type="submit" value="Submit" />
</div>
</form>
<div id="debug_disabled" class="debug_log"></div>
</div>
<div id="usage_groups">
<form action="" method="get">
<h2>Group related options</h2>
<div class="example-container ui-helper-clearfix">
<select id="multiselect_groups" name="multiselect" class="multiselect" multiple="multiple">
<optgroup label="Australia">
<option value="Holden">Holden</option>
</optgroup><optgroup label="Belgium">
<option value="Gillet">Gillet</option>
</optgroup><optgroup label="Brazil">
<option value="Agrale">Agrale</option>
<option value="Lobini">Lobini</option>
<option value="TAC Motors">TAC Motors</option>
<option value="Troller">Troller</option>
</optgroup><optgroup label="Canada">
<option value="Bricklin">Bricklin</option>
<option value="Studebaker">Studebaker</option>
</optgroup><optgroup label="China">
</optgroup><optgroup label="Czech Republic">
<option value="Avia">Avia</option>
<option value="Kaipan">Kaipan</option>
<option value="Praga">Praga</option>
<option value="Skoda Auto">Skoda Auto</option>
<option value="Tatra">Tatra</option>
</optgroup><optgroup label="France">
<option value="ACMA">ACMA</option>
<option value="Aixam">Aixam</option>
<option value="Bugatti">Bugatti</option>
<option value="Citroen">Citroen</option>
<option value="Cottin & Desgouttes">Cottin & Desgouttes</option>
<option value="Facel Vega">Facel Vega</option>
<option value="Matra">Matra</option>
<option value="Peugeot">Peugeot</option>
<option value="Renault">Renault</option>
</optgroup><optgroup label="Germany">
<option value="Audi">Audi</option>
<option value="AWZ">AWZ</option>
<option value="Barkas">Barkas</option>
<option value="Bitter">Bitter</option>
<option value="BMW">BMW</option>
<option value="Borgward">Borgward</option>
<option value="Büssing">Büssing</option>
<option value="DKW">DKW</option>
<option value="Glas">Glas</option>
<option value="Goliath">Goliath</option>
<option value="Hansa">Hansa</option>
<option value="Heinkel">Heinkel</option>
<option value="Horch">Horch</option>
<option value="Lloyd">Lloyd</option>
<option value="Maybach">Maybach</option>
<option value="MAN">MAN</option>
<option value="Mercedes-Benz">Mercedes-Benz</option>
<option value="Multicar">Multicar</option>
<option value="NAG">NAG</option>
<option value="Neoplan">Neoplan</option>
<option value="Opel">Opel</option>
<option value="Porsche">Porsche</option>
<option value="Robur">Robur</option>
<option value="Simson">Simson</option>
<option value="Trabant">Trabant</option>
<option value="Volkswagen">Volkswagen</option>
<option value="Wanderer">Wanderer</option>
<option value="Wartburg">Wartburg</option>
</optgroup><optgroup label="India">
<option value="Ashok Leyland">Ashok Leyland</option>
<option value="Chinkara Motors">Chinkara Motors</option>
<option value="DC Design">DC Design</option>
<option value="Force Motors">Force Motors</option>
<option value="Hindustan Motors">Hindustan Motors</option>
<option value="ICML">ICML</option>
<option value="Mahindra & Mahindra Limited">Mahindra & Mahindra Limited</option>
<option value="Maruti Suzuki">Maruti Suzuki</option>
<option value="Premier Automobiles Limited">Premier Automobiles Limited</option>
<option value="Tata Motors">Tata Motors</option>
<option value="SML ISUZU">SML ISUZU</option>
</optgroup><optgroup label="Iran">
<option value="Bahman Group">Bahman Group</option>
<option value="IKCO (Iran Khodro)">IKCO (Iran Khodro)</option>
<option value="Kerman Motors">Kerman Motors</option>
<option value="Kish Khodro">Kish Khodro</option>
<option value="MVM">MVM</option>
<option value="Pars Khodro">Pars Khodro</option>
<option value="SAIPA">SAIPA</option>
</optgroup><optgroup label="Italy">
<option value="Alfa Romeo">Alfa Romeo</option>
<option value="DR Motor">DR Motor</option>
<option value="Ferrari">Ferrari</option>
<option value="Fiat">Fiat</option>
<option value="Intermeccanica">Intermeccanica</option>
<option value="Lamborghini">Lamborghini</option>
<option value="Lancia">Lancia</option>
<option value="Maserati">Maserati</option>
<option value="Pagani">Pagani</option>
<option value="Siata">Siata</option>
<option value="Vignale">Vignale</option>
</optgroup><optgroup label="Japan">
<option value="Acura">Acura</option>
<option value="Daihatsu">Daihatsu</option>
<option value="Datsun">Datsun</option>
<option value="Hino">Hino</option>
<option value="Honda">Honda</option>
<option value="Infiniti">Infiniti</option>
<option value="Isuzu">Isuzu</option>
<option value="Lexus">Lexus</option>
<option value="Mazda">Mazda</option>
<option value="Mitsubishi Motors">Mitsubishi Motors</option>
<option value="Nissan">Nissan</option>
<option value="Subaru">Subaru</option>
<option value="Suzuki">Suzuki</option>
<option value="Toyota">Toyota</option>
<option value="Yamaha">Yamaha</option>
</optgroup><optgroup label="Malaysia">
<option value="Naza">Naza</option>
<option value="Perodua">Perodua</option>
<option value="Proton">Proton</option>
</optgroup><optgroup label="Mexico">
<option value="Mastretta">Mastretta</option>
<option value="DINA">DINA</option>
<option value="King">King</option>
<option value="Tranvias-Cimex">Tranvias-Cimex</option>
<option value="Vehizero">Vehizero</option>
<option value="Carabela">Carabela</option>
<option value="Italika">Italika</option>
</optgroup><optgroup label="Monaco">
<option value="Venturi">Venturi</option>
</optgroup><optgroup label="Netherlands">
<option value="DAF">DAF</option>
<option value="Spyker">Spyker</option>
</optgroup><optgroup label="Romania">
<option value="Automobile Dacia">Automobile Dacia</option>
</optgroup><optgroup label="Russia">
<option value="Avtoframos">Avtoframos</option>
<option value="GAZ">GAZ</option>
<option value="Kamaz">Kamaz</option>
<option value="Lada">Lada</option>
<option value="Marussia Motors">Marussia Motors</option>
<option value="Volga">Volga</option>
</optgroup><optgroup label="Serbia">
<option value="Zastava Automobiles">Zastava Automobiles</option>
</optgroup><optgroup label="South Africa">
<option value="G.S.M.">G.S.M.</option>
</optgroup><optgroup label="South Korea">
<option value="GM Korea">GM Korea</option>
<option value="Hyundai Motor Company">Hyundai Motor Company</option>
<option value="Kia Motors">Kia Motors</option>
<option value="Renault Samsung Motors">Renault Samsung Motors</option>
<option value="SsangYong Motor Company">SsangYong Motor Company</option>
</optgroup><optgroup label="Spain">
<option value="SEAT">SEAT</option>
</optgroup><optgroup label="Sweden">
<option value="Koenigsegg">Koenigsegg</option>
<option value="Jösse Car">Jösse Car</option>
<option value="Saab">Saab</option>
<option value="Volvo">Volvo</option>
</optgroup><optgroup label="Switzerland">
<option value="Enzmann">Enzmann</option>
</optgroup><optgroup label="United Kingdom">
<option value="AC">AC</option>
<option value="Allard">Allard</option>
<option value="Alvis">Alvis</option>
<option value="Armstrong Siddeley">Armstrong Siddeley</option>
<option value="Aston Martin">Aston Martin</option>
<option value="Austin-Healey">Austin-Healey</option>
<option value="Bentley">Bentley</option>
<option value="Bristol">Bristol</option>
<option value="British Leyland">British Leyland</option>
<option value="Caterham">Caterham</option>
<option value="Daimler">Daimler</option>
<option value="Elva">Elva</option>
<option value="Ginetta">Ginetta</option>
<option value="Gordon Keeble">Gordon Keeble</option>
<option value="Hillman">Hillman</option>
<option value="Humber">Humber</option>
<option value="Jaguar">Jaguar</option>
<option value="Jensen">Jensen</option>
<option value="Jowett">Jowett</option>
<option value="Lanchester">Lanchester</option>
<option value="Land Rover">Land Rover</option>
<option value="Lotus">Lotus</option>
<option value="Marcos">Marcos</option>
<option value="MG">MG</option>
<option value="MG Cars">MG Cars</option>
<option value="Mini Cooper">Mini Cooper</option>
<option value="Morgan">Morgan</option>
<option value="Morris">Morris</option>
<option value="Noble">Noble</option>
<option value="Riley">Riley</option>
<option value="Rolls Royce">Rolls Royce</option>
<option value="Rover">Rover</option>
<option value="Singer">Singer</option>
<option value="Sunbeam">Sunbeam</option>
<option value="Triumph">Triumph</option>
<option value="Trojan">Trojan</option>
<option value="TVR">TVR</option>
<option value="Vauxhall">Vauxhall</option>
<option value="Wolseley">Wolseley</option>
</optgroup><optgroup label="United States">
<option value="Buick">Buick</option>
<option value="Cadillac">Cadillac</option>
<option value="Chevrolet">Chevrolet</option>
<option value="Coda">Coda</option>
<option value="Chrysler">Chrysler</option>
<option value="DeLorean Motor Company">DeLorean Motor Company</option>
<option value="Dodge">Dodge</option>
<option value="Fisker">Fisker</option>
<option value="Ford">Ford</option>
<option value="Global Electric Motorcars">Global Electric Motorcars</option>
<option value="GMC">GMC</option>
<option value="International Harvester">International Harvester</option>
<option value="Jeep">Jeep</option>
<option value="Lincoln">Lincoln</option>
<option value="Navistar International">Navistar International</option>
<option value="Scion">Scion</option>
<option value="Tesla">Tesla</option>
</optgroup>
</select>
</div>
<div class="debug_uiControls">
<button id="btnToggleOriginal_groups">Toggle original element</button>
<input type="text" id="txtSearch_groups" size="15" />
<button id="btnSearch_groups">Search</button>
<input type="submit" value="Submit" />
</div>
</form>
<div id="debug_groups" class="debug_log"></div>
</div>
<div id="usage_dynamic">
<form action="" method="get">
<h2>Dynamic usage</h2>
<div class="example-container ui-helper-clearfix">
<select id="multiselect_dynamic" name="multiselect" class="multiselect" multiple="multiple"></select>
</div>
<div class="debug_uiControls">
<button id="btnToggleOriginal_dynamic">Toggle original element</button>
<input type="text" id="txtGenerate_dynamic" size="6" maxlength="5" value="1000" />
<button id="btnGenerate_dynamic">Generate options</button>
<input type="text" id="txtSearch_dynamic" size="15" />
<button id="btnSearch_dynamic">Search</button>
<input type="submit" value="Submit" />
</div>
</form>
<div id="debug_dynamic" class="debug_log"></div>
</div>
</div>
</body>
</html>