Questions tagged [jquery-mobile-select]

The select menu is based on a native select element, which is hidden from view and replaced with a custom-styled select button that matches the look and feel of the jQuery Mobile framework. The select menu is ARIA-enabled and keyboard accessible on the desktop as well.

The select menu is based on a native select element, which is hidden from view and replaced with a custom-styled select button that matches the look and feel of the jQuery Mobile framework. The select menu is ARIA-enabled and keyboard accessible on the desktop as well.

By default, the framework leverages the native OS options menu to use with the custom button. When the button is clicked, the native OS menu will open. When a value is selected and the menu closes, the custom button's text is updated to match the selected value. Please note that the framework also offers the possibility of having custom (non-native) select menus.

The framework will find all select elements and automatically enhance them into select menus; there is no need to apply a data-role attribute. To prevent the automatic enhancement of a select, add data-role="none" attribute to the select.

<label for="select-choice-0" class="select">Shipping method:</label>
<select name="select-choice-0" id="select-choice-0">
   <option value="standard">Standard: 7 day</option>
   <option value="rush">Rush: 3 days</option>
   <option value="express">Express: next day</option>
   <option value="overnight">Overnight</option>
</select>

This will produce a basic select menu. The default styles set the width of the input to 100% of the parent container and stacks the label on a separate line.

Demo

API

22 questions
28
votes
2 answers

How to fix truncated text on

1
vote
2 answers

select options shown twice when select box is touched

It is an android application made with cordova. The form has multiple select boxes. When select box is tapped the options are shown in the native android style, however it flickers. When you select option, options disappears and the text on option…
1
vote
0 answers

Select box creation in jquery mobile?

I have created one dynamic select box using jquery mobile android application.It was created good, but when i am going to next list view page and get back to the same select box page.The select box is disappear.The page is displaying as blank. For…
1
vote
1 answer

Error calling refresh() on a jQuery Mobile select

I'm having trouble updating a jQuery Mobile select. On demand I want to change the contents and update the selected value. Here's the fiddle (code below): http://jsfiddle.net/cjindustries/0cmg8vvt/2/ I'm getting this error in the console (along with…
Chris
  • 3,081
  • 3
  • 32
  • 37
1
vote
1 answer

Reduce delay while selecting option in jquery mobile

I have my application installed on an Android Device Samsung S4 which is built using Intel XDK. I have a select dropdown in the form having 40 options. When i tap on an option to choose, it chooses the option instantly but takes 2 seconds of delay…
Khawer Zeshan
  • 9,470
  • 6
  • 40
  • 63
1
vote
1 answer

dynamic dropdown creation using jquery mobile

The following code not working when i create the dropdownlist using jquery mobile $(function(){ $('#hello').append('
0
votes
1 answer

jQjuery Mobile - Select Not working

I have the following select set up. I see it displayed with the first option showing. However, when I click to see the other items, nothing happens. Why won't the dropdown expand to show them?
Scott
  • 2,456
  • 3
  • 32
  • 54
0
votes
1 answer

how to enhance dynamically created select menu in jquery mobile

I use multi-page template (JQM) and created a single html file with 2 pages (Page0 and Page1). Both pages have the same selectmenu element, which is dynamically created during page load. For some reason, selectmenu element in Page1 has some style…
Detroit
  • 17
  • 1
  • 4
0
votes
3 answers

jQuery mobile - dynamically switch Select Menu to Multiple

I want to enable the multiple select when I checked the checkbox, but it doesn't work. How to achieve this using jQuery mobile? Toggle Select