Permalink
Browse files

Selectmenu: added open and close method demo

  • Loading branch information...
fnagel committed Oct 17, 2011
1 parent c31e6e8 commit 404f4c1263de2f951250f28d0463002d6f017c65
Showing with 12 additions and 0 deletions.
  1. +12 −0 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 -->

0 comments on commit 404f4c1

Please sign in to comment.