aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2011-10-17 22:06:07 +0200
committerFelix Nagel <info@felixnagel.com>2011-10-17 22:06:07 +0200
commit404f4c1263de2f951250f28d0463002d6f017c65 (patch)
tree522a83068b4cf8c9a2e6d95b16e5daaccb4eb090 /tests
parentc31e6e8ffe787ea69f7926ecb6319eb9780df0b8 (diff)
downloadjquery-ui-404f4c1263de2f951250f28d0463002d6f017c65.tar.gz
jquery-ui-404f4c1263de2f951250f28d0463002d6f017c65.zip
Selectmenu: added open and close method demo
Diffstat (limited to 'tests')
-rw-r--r--tests/visual/selectmenu/methods.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/visual/selectmenu/methods.html b/tests/visual/selectmenu/methods.html
index e004f40a1..5611b49ea 100644
--- a/tests/visual/selectmenu/methods.html
+++ b/tests/visual/selectmenu/methods.html
@@ -24,6 +24,16 @@
mySelectmenu.append('<option value="fastsound">Faster than sound</option>');
mySelectmenu.selectmenu("refresh");
});
+
+ $("#open").click( function() {
+ mySelectmenu.selectmenu("open");
+ return false;
+ });
+
+ $("#close").click( function() {
+ mySelectmenu.selectmenu("close");
+ return false;
+ });
});
</script>
<style>
@@ -53,6 +63,8 @@
<br />
<button id="destroy">Destroy</button>
<button id="refresh">Add item and refresh</button>
+<button id="open">Open</button>
+<button id="close">Close</button>
</div><!-- End demo -->