I am trying to usejquery auto complete. when the autocomplete is requested, I want a value from another textbox to be sent as well. However the value doesnt get sent from the other text box. please help.
HTML:
<form>
<input type="text" id="stat" name="stat" />
<input type="text" id="city" name="city" />
</form>
jQuery:
<script type="text/javascript">
$(function() {
$( "#city" ).autocomplete({
source:"backend.asp?typ=getcity&stat="+$("#stat").val()
});
});
</script>
.autocompleteon the city whenever thestathas changed. Otherwise it won't get updated.