hello,
I am using jquery auto complete which works well, but i want when user click on textbox it should show suggestion box below to textbox coming from database and as user start typing and result coming from search text the other suggstion box disappear
please advice.
<script>
$(function () {
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
];
$("#tags").autocomplete({
source: availableTags,
});
});
</script>
<div class="ui-widget">
<label for="tags">Tags: </label>
<input id="tags">
</div>
<div id="dvsome">
on click of Textbox this div will show suggestions coming from SQL database when user start typing in textbox this div should close dispose the data from here
</div>