Chain Select Menu Not showing data on mobile devices when use data-native-menu="false"
Hay i have a problem in my jquery mobile sites. i have three drop down first related to country 2nd related to states and third is city. when i select country then relative states of thus country should be shown. this thing working o my lical server(desktop) but when i upload the site on server and access it throw mobile device countries are there and i can select them . but states are not showing (Remeber I am using
data-native-menu="false" ).
- function getStates (cid) {
- $.ajax
- ({
- type: "POST",
-
- url: "http://localhost/site/get-mobile-states?cid="+cid,
- cache: false,
- success: function(html)
- {
- $(".state").html(html);
- }
- });
- }
- function getCities (sid) {
- $.ajax
- ({
- type: "POST",
-
- url: "http://localhost/site/get-mobile-cities?sid="+sid,
- cache: false,
- success: function(html)
- {
- $(".city").html(html);
- }
- });
- }
- <form action="" method="get">
- <div data-role="fieldcontain" >
- <!-- This is the Country Select box -->
- <label ><h3>Country</h3></label><br />
- <select name="country" id="country" data-native-menu="false" data-theme="d" data-mini="true" onChange="return getStates (this.value);">
- <?php
- foreach($country as $count)
- {
-
- ?>
- <option value="<?php echo $count['id']; ?>"><?php echo $count['name'] ?></option>
- <?php } ?>
- </select>
- </div>
- <!-- This is the State Select box -->
- <div data-role="fieldcontain">
- <label ><h3 >State</h3></label><br />
- <select name="state" id="state" class="state" data-native-menu="false" data-theme="d" data-mini="true" onChange="return getCities (this.value);">
- <option selected="selected"></option>
- </select>
- </div>
- <!-- This is the City Select box -->
- <div data-role="fieldcontain">
- <label ><h3 >City</h3></label><br />
- <select name="city" data-theme="d" data-native-menu="false" data-mini="true" class="city">
- <option selected="selected"></option>
- </select>
- </div>