I'm writing RoR application and I have working autocomplete. In page.coffee I have this:
jQuery ->
$('#search').autocomplete
source: "/autocomplete_source"
In the form I have also #select combobox in addition to the #search textbox and I'd need to pass the value of selected item as 'data' into the jQuery.autocomplete method.
In short - I need to restrict searched values by the value of combobox selected item.
How can I pass it?
Thanks