Place no text for non native select

Description

The following code shows how to place no text for non native select.

Example


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.9.1.js'></script>
<script type='text/javascript'
  src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
<link rel="stylesheet" type="text/css"
  href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css">
</head><!--from w w  w.java  2  s. co  m-->
<body>
  <div data-role="page">
    <div data-role="header">
      <h1>Front page</h1>
    </div>
    <div data-role="content">
      <div data-role="fieldcontain">
        <label for="select-native-1">Basic:</label> 
        <select name="select-native-1" id="select-native-1"
          data-native-menu="false" data-iconpos="notext"
          data-divider-theme="a" data-theme="c">
          <option value="1">The 1st Option</option>
          <option value="2">The 2nd Option</option>
          <option value="3">The 3rd Option</option>
          <option value="4">The 4th Option</option>
        </select>
      </div>
    </div>
</body>
</html>

Click to view the demo





















Home »
  jQuery Mobile »
    Example »




Button
Button Event
Button Icon
Button Text
Checkbox
Collapsible
Date
Dialog
Event
Footer
Form
Header
Icon
Input
Layout
Listview
Listview Divider
Listview Item
Loader
mobile_settings
Navbar
Page
Page Event
Popup
Radio
Select
Slider
Switch
Textarea
Theme