<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<select onchange="showUser(this.value)" name="city" id="eczaneId" class="formTextBox">
<option value="">Size en yakın ZİGAVUS nerede?</option>
<?php
//$cities = getCities();
$sorgu = "select * from il order by ilad ASC";
$sonuc = mysql_query($sorgu,$baglan);
while ($row = mysql_fetch_array($sonuc)){
?>
<option value="harita.php?il=<?php echo $row['ilid']?>" <?php echo $row['ilid']==$cityId?'selected="selected"':''?>><?php echo $row['ilad']?></option>
<?php }
?>
</select>
<script>
$(function(){
$('#eczaneId').bind('change', function () {
var url = $(this).val();
if (url) {
window.location = url;
}
return false;
});
});
</script>
işinizi görür belki seçime göre harita.php?il=... e yönelendiriyor