Hello, I am trying to simulate the Youtube Autocomplete Search experience.
I can't find the option when the viewer clicks on a listed item and is automatically proceeded to search for said item.
My coding is as follow:
<script type="text/javascript">
var data = ['array1','array2'];
$(document).ready(function() {
$j("input#directorySearch").autocomplete(data);
});
</script>
The above code will allow the user to click on of the listed items, however, it will fill the search box rather than automatically searching.