to set extraParams dynamically to the current value of other dom elements,
assign a function to the extraParams that retrieves the value from the dom,
e.g.
$("#state").autocomplete(url, {
extraParams: {
town: function() { return $("#town").val(); }
}
});
see http://docs.jquery.
Use AutoComplete's "extraParams" hook
http://docs.jquery.com/Plugins/Autocomplete/autocomplete#toptions
so it would be like:
$("your state search textbox").autocomplete(
"/ajax/location.php",
{ extraParams: { type: $("#state").val() } }
);
On Jun 26, 12:34 pm, 01101010001010001010
w
2 matches
Mail list logo