I am very new to jQuery and javascript. I have an autocomplete box setup (from jQuery UI). After the user selects his value from the search box, how do I pass that value to another php page (ie getmatches.php, which will look up that value in our database). I have:
$(function(){
$("#my_cell").autocomplete({
source: "autocomplete.php",
minLength: 1,
delay: 0,
select: function (event, ui) {
// what goes here?
}
});
});
you can either attach a get param to url like this:
but I think the $.autocomplete plugin function may provide API for sending parameters to backend, I think you should read documentation for it, in most cases docs specify everything you need