Autocomplete - after select, scroll to div?
Hi guys,
I have finally figured out how to get jquery autocomplete to run from my MySQL databae in PHP.
Is it possible to get it to scroll to a div of the same ID (or similar) as the item selected from the autocomplete drop down? Preferably with a highlight of the selected div?
Here's what I have so far... Thanks fot the help!
- <script type="text/javascript">
$(function() {
$("#search").autocomplete({
source: "search2.php",
minLength: 2,
select: function(event, ui) {
log(ui.item ? ("Selected: " + ui.item.value + " aka " + ui.item.id) : "Nothing selected, input was " + this.value);
}
});
});
</script>