Questions tagged [select-menu]

selectmenu is a jQuery UI plugin which allows replacing the browser's standard `

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: