Select tag doesnot displays the option list in ipad but is displayed in desktop

dirtyd

New Member
\[code\]<script> function fillmodel() { document.body.style.cursor = "wait"; try { // Opera 8.0+, Firefox, Safari ajaxRequest = new XMLHttpRequest(); } catch (e) { // Internet Explorer Browsers try { ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { // Something went wrong ajaxsupport = false; } } } ajaxRequest.onreadystatechange = function () { if (ajaxRequest.readyState == 4) { var tp = ajaxRequest.responseText; //alert(tp); if (tp == "") { document.admins.subcategory_id.options.length = 1; document.admins.subcategory_id.options[0].valuehttp://stackoverflow.com/questions/13814517/= ""; document.admins.subcategory_id.options[0].text = "---Select---"; } else { var wt = tp.split("@") document.admins.subcategory_id.options.length = wt.length + 1; document.admins.subcategory_id.options[0].valuehttp://stackoverflow.com/questions/13814517/= ""; document.admins.subcategory_id.options[0].text = "---Select---"; //alert(wt.length); for (j = 0; j < wt.length; j++) { //alert(wt[j].toString()); var qw = wt[j].toString().split("~"); document.admins.subcategory_id.options[j + 1].value = http://stackoverflow.com/questions/13814517/qw[0]; document.admins.subcategory_id.options[j + 1].text = qw[1]; } document.admins.subcategory_id.selectedIndex = 0; } document.body.style.cursor ="default"; } } var sent = document.admins.category_id.value; ajaxRequest.open("GET", "ajax_category.php?conf=" + sent, true); ajaxRequest.send(null); }</script><select name="subcategory_id"> <option value="" selected>---Select---</option> <? if($category_id) { $intv=mysql_query( "select category_id,category_name from category_master where category_status='1' and category_parentid='".$category_id. "' order by category_name asc"); $countv=mysql_num_rows($intv); if($countv>0) { $t=0; while($rowtp=mysql_fetch_array($intv)) { $ty1=trim($rowtp['category_id']); $ty2=trim($rowtp['category_name']); if($t==0) { ?> <option value="http://stackoverflow.com/questions/13814517/<? echo" $ty1 " ?>" <? if($subcategory_id==$ty1) { ?>selected <? } ?>> <? echo stripslashes(stripslashes($ty2)) ?> </option> <? } else { ?> <option value="http://stackoverflow.com/questions/13814517/<? echo" $ty1 " ?>" <? if($subcategory_id==$ty1) { ?>selected <? } ?>> <? echo stripslashes(stripslashes($ty2)) ?> </option> <? } $t++; } }} ?></select>\[/code\]
 
Back
Top