コメント |
@DIV
<script type="text/javascript">
jQuery(function () {
jQuery('#input1').combobox([
'Foo',
'Bar',
'Bartender',
'Hello',
'Master',
'Monster',
'Monorail',
'Octopus has eight legs',
'Octagon',
'Often',
'World',
'wacko',
'woo'
]);
jQuery('#input2').combobox([
'Yo',
'Mo',
'Jo'
]);
jQuery('#option_changer').click(function (e) {
$("#input1").comboget().setSelectOptions([
'A',
'O',
'B'
]);
});
jQuery('#option_changer2').click(function (e) {
$("#input2").comboget().setSelectOptions([
'Apples',
'Oranges',
'Bananas'
]);
});
});
</script>
<div>
<h1>jQuery.combobox Demo</h1>
<p>
by <a href="http://dellsala.com/">Dell Sala</a><br>
<a href="https://github.com/dellsala/Combo-Box-jQuery-Plugin">Get it from github</a>
</p>
</div>
<div>
<textarea id="input1"></textarea>
<label for="input2">Field2:</label> <input id="input2" type="text" value="Hello"><br>
<br>
<br>
<input id="option_changer" type="button" value="Change Field 1 Options">
<input id="option_changer2" type="button" value="Change Field 1 Options">
</div>
@END |