mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: added open and close method demo
This commit is contained in:
parent
c31e6e8ffe
commit
404f4c1263
@ -24,6 +24,16 @@
|
|||||||
mySelectmenu.append('<option value="fastsound">Faster than sound</option>');
|
mySelectmenu.append('<option value="fastsound">Faster than sound</option>');
|
||||||
mySelectmenu.selectmenu("refresh");
|
mySelectmenu.selectmenu("refresh");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#open").click( function() {
|
||||||
|
mySelectmenu.selectmenu("open");
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#close").click( function() {
|
||||||
|
mySelectmenu.selectmenu("close");
|
||||||
|
return false;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
@ -53,6 +63,8 @@
|
|||||||
<br />
|
<br />
|
||||||
<button id="destroy">Destroy</button>
|
<button id="destroy">Destroy</button>
|
||||||
<button id="refresh">Add item and refresh</button>
|
<button id="refresh">Add item and refresh</button>
|
||||||
|
<button id="open">Open</button>
|
||||||
|
<button id="close">Close</button>
|
||||||
|
|
||||||
</div><!-- End demo -->
|
</div><!-- End demo -->
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user