Here is my code snippet:
<option value="">Select State</option>
<?php
while($row=mysql_fetch_array($select))
{
echo "<option value=".$row['state_id'].">".$row['state']." </option>";
}
?>
</select>
</label>
<label style="margin-left:20px; width:200px; float:left; padding-top:6px;">
<select name="city" id="city" onChange="getArea('indexcontroller/indexmodules/findarea.php?city='+this.value)" style="width:220px;margin-left:3px;height:39px;margin-top:6px;">
<option value="">Select City/Town</option>
</select>
Is there a way to pass the selected state value to the getArea() function?