don11 Posted January 27, 2011 Share Posted January 27, 2011 Hello, I am using a javascript to load region, country and city in select box but values are not submitting. This is the code that i am using: From:<br/> Region: <select onchange="set_country(this,country,city_state)" size="1" name="region" id="firegion" class="DEPENDS ON gt BEING inter"> <option value="" selected="selected">SELECT REGION</option> <script type="text/javascript"> setRegions(this); </script> </select><br/> Country: <select name="country" size="1" disabled="disabled" onchange="set_city_state(this,city_state)" id="ficountry" class="DEPENDS ON gt BEING inter"></select><br/> City/State: <select name="city_state" size="1" disabled="disabled" onchange="print_city_state(country,this)" id="ficity" class="DEPENDS ON gt BEING inter"></select> In above code, all data are loaded from external data.js file Quote Link to comment https://forums.phpfreaks.com/topic/225835-select-box-values-not-submitting/ Share on other sites More sharing options...
the182guy Posted January 27, 2011 Share Posted January 27, 2011 If the values are not submitting then I would take a guess that the <select>'s are not within the <form></form> tag. Quote Link to comment https://forums.phpfreaks.com/topic/225835-select-box-values-not-submitting/#findComment-1165968 Share on other sites More sharing options...
don11 Posted January 28, 2011 Author Share Posted January 28, 2011 Problem is solved now, thanx brother. Quote Link to comment https://forums.phpfreaks.com/topic/225835-select-box-values-not-submitting/#findComment-1166403 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.