I am using styled select dropdown, from here:
I want to post the selected option in order to render some data for other dropdowns.
The problem is the the
onChange="this.form.submit()"
is not working, as the JQuery changes select options to ul > li
...
Any solution will be appericiated..
Either to post on the same,
or to have an alternative JQuery select which does not convert select to ul li.
select name="districtid" id="districtid" class="cd-select" > onChange="this.form.submit();" >
<option value="" selected>Select District</option> <?php do { ?> <option value="<?php echo >$row_district['id'];?>" <?php if(isset($_GET['districtid']))
{ $pdistrict = $_GET['districtid']; if ($row_district['id'] == $pdistrict ) echo "selected";} ?>>
echo $row_district['name']; ?> </option> <?php } while ($row_district = >mysql_fetch_assoc($district)); ?>