selectmenu is a jQuery UI plugin which allows replacing the browser's standard `
Questions tagged [select-menu]
119 questions
23
votes
5 answers
How to handle jQuery UI Selectmenu change event
i use jquery ui select menu with custom render option
how i can handle the change event ?
i try
$('#filesA').on('change', function() {
alert( 'x');
});
but its not working with jQuery UI Selectmenu
and also i try
$( "#filesA"…

Tarek Saied
- 6,482
- 20
- 67
- 111
17
votes
5 answers
selectmenu ('refresh', true)
I get form from zend framework site and put it in response in new file in function written by jquery mobile, but I get this error:
uncaught exception: cannot call methods on selectmenu prior to
initialization; attempted to call method 'refresh'…

Dar Lym
- 183
- 1
- 1
- 7
13
votes
1 answer
jQuery UI Selectmenu value set dynamically does not change visible selected value
I am using jQuery UI Selectmenu and am having trouble setting the value of a rendered selected. It seems to change the selected option in the underlying select, but the selectmenu does not show the change. I am calling .selectmenu('refresh', true)…

SocioBit
- 183
- 1
- 2
- 7
9
votes
5 answers
jquery ui selectmenu scrollbar not working
I use jquery selectmenu plugin. I have initialized select with
$('select').selectmenu({width:100, maxHeight:300, style: 'dropdown'});
I have many options and this causes to appear default browser scrollbar, but i cant use it. If I click and try…

jyriand
- 2,434
- 3
- 23
- 28
8
votes
4 answers
Knockout.js - Get text selected value in a drop-down menu
I would like to know how to get the value of the TEXT selected from the dropdown menu, just remember that my drop down menu has the fixed data and are not populated by a "ko.observableArray ()". Any ideas?
When I select an option want to have: Value…

Igor
- 3,573
- 4
- 33
- 55
7
votes
3 answers
jQuery UI Selectmenu events bind
Im using JQuery UI Selectmenu widget - http://wiki.jqueryui.com/w/page/12138056/Selectmenu
Im trying to bind change event. But it does not work:
$(function() {
$('select#items').selectmenu();
$('select#items').bind("change",function(){
…

Bounce
- 2,066
- 6
- 34
- 65
7
votes
4 answers
jQuery selectmenu dropdown height
I want to limit the number of items in a dropdown list, lets say to 6. After quite a search I can't find anything other than a hint there is a maxHeight option, but that appears to have no effect.
HTML:

Jon Evans
- 71
- 1
- 1
- 3
6
votes
1 answer
jQuery Mobile 1.1.1 Custom Select Menu - Placeholder Text not Visible
After upgrading to jQuery Mobile 1.1.1 earlier today (7/13/2012) I noticed that all of my Custom Select menus no longer show the placeholder text on page load. Is there something I need to do differently in 1.1.1 to show the placeholder text in…

adamdehaven
- 5,890
- 10
- 61
- 84
6
votes
6 answers
jQuery hide selectMenu?
I'm using jQuery's selectMenu on a select tag like this.
$('#ddlReport').selectmenu()
in certain cases I want to hide it, and I can't figure out how.
this doesn't work:
$('#ddlReport').selectmenu().hide();
neither does…

Igal
- 135
- 2
- 10
5
votes
9 answers
How to get the index of an option in a select menu by matching the text with plain Javascript?
I have a select menu and I need to dynamically select the option based on the text value of the option element. For example, my select looks like this:
5
votes
2 answers
Use jQuery on HTML Select Menu for Birthday/Date of Birth format
I'm looking to have a standard HTML select menu for selecting your date of birth. Day, Month, Year. Can someone point me in the right direction to use jQuery to format the correct number of days in the month depending on what year / month is…

Chris
- 833
- 2
- 17
- 37
5
votes
3 answers
JQuery Mobile - Getting the Value of a SelectMenu
When I attempt to get the value from my the select menu, I get an empty value.
I know the reason I do is that the jquery mobile markup results in two items with a class of "mySelect"-- so the selector $(".selectMenu") is a wrapped set.
I am…

ek_ny
- 10,153
- 6
- 47
- 60
4
votes
3 answers
Setting a default selection in a select menu in JQuery Mobile?
I'm trying to set the default selection in a select menu in JQuery mobile. The docs have this:
var myselect = $("select#foo");
myselect[0].selectedIndex = 3;
myselect.selectmenu("refresh");
Which I added right underneath where I create the…

meds
- 21,699
- 37
- 163
- 314
4
votes
3 answers
How to iterate through jQuery UI selectmenu by using 2 buttons?
Please try the jsFiddle with jQuery UI selectmenu and 2 buttons.
With the help of 2 buttons prevGame and nextGame I am able to change the selectedIndex variable tracking the currently selected game number.
The jQuery UI selectmenu doc unfortunately…

Alexander Farber
- 21,519
- 75
- 241
- 416
4
votes
2 answers
jQuery selectmenu change function not working on iPhone
I am using the jquery selectmenu function within my webpage and it does not seem to work properly on ios browsers.
After I select my menu item the menu disappears but my change: function does not fire at all. It simply just hides the menu again.
My…

djnetherton
- 757
- 1
- 7
- 19