Josh, >First time posting to the list. I have been using jquery for a couple of >months and it rocks! > >I am using Jörn's autocomplete plugin to query results from a database. >Everything is working perfectly. However what I am wanting to do is have >a select box next to the autocomplete box that will allow the user to >select the type of information for which they would like to search. Is >there a way to go about passing the value from the select box along to >the query through the autocomplete plugin? All help is much appreciated.
A while back I added the setOptions() method to allow you to do this exactly this type of thing. The setOption() method will allow you to update the original settings you configured. Using this option you can either physically change the AJAX URL or just update the extraParams key. For example: // change the url parameters $("input#suggest").setOptions({ extraParams: { search: $("select#search").getValue(); } }); // clear the cache so we don't get dirty results $("input#suggest").flushCache(); In the above example I use my Field Plug-in (http://jquery.com/plugins/project/field) to get the value a select element with the id of "search" and update the "search" parameter. The "search" parameter will automatically be appended to the url and properly encoded. You'll also want to run the flushCase() method after changing the options to make sure that you're not using the dirty cache. -Dan