question on jqueryui.com autocomplete
Cant find the option or cant figure out how to have the clicked autocomplete item append to a search string
Probably easy, but not Jquery literate.
Also would like to have the list not on the original page, I would like to use a different JSON file or .js file
Would like two columns, the string to match, and the string to submit
For instance, if someone were to type in FORD it would find FORD, but FORD would actually, behind the scenes be matched to MUSTANG then submit to the below on the input field, after query=
<div class="ui-widget">
<form method="get" action="
http://www.searching.com/search.aspx?query=">
<input id="tags" type="text" name="query" value="test" size="35" autofocus>
<input size="15" type="submit" value="Search">
</form>
</div>
And how do I add the delay and minlength options?
I tried the below, but it doesnt delay
// getter
var autoFocus = $( ".selector" ).autocomplete( "option", "autoFocus" );
// setter
$( ".selector" ).autocomplete( "option", "autoFocus", true );
// getter
var minLength = $( ".selector" ).autocomplete( "option", "minLength" );
// setter
$( ".selector" ).autocomplete( "option", "minLength", 3 );
Thank you