a little question
a little question
i am new to jquery. i have been able to make a basic script , but i have a problem.
the scripts i made is for a search box , the problem is that the search lists does not expand over the page. its just moving the page more down.
this is the script:
<script type="text/javascript">
function lookup(inputString) {
if(inputString.length < 1) {
$('#suggestions').hide();
} else {
$.post("http://www.ulucg.me/sugestion.php", {queryString: ""+inputString+""}, function(data){
if(data.length > 0) {
$('#suggestions').show();
$('#autoSuggestionsList').html(data);
}
});
}
}
function fill(thisValue) {
$('#inputString').val(thisValue);
setTimeout("$('#suggestions').hide();", 200);
}
</script>
the live example is here: http://dorohoinews.ro/pages/reducere-a-impozitului.php -> try the search box simply type the keyword : " d "
I will be very happy if someone could help me out