In my search box, when a user presses three letters, a list of potential hits is shown.
But when a user selects a name from this list, he still has to press enter. How can I avoid this When he selects his name, his name should be automatically be submitted.
UPDATE: And is it possible to only submit when a user selects a name from the list, and not when he presses enter?
This is the HTML code:
<form action="10_miles.php" method="post">
<p><label>Please enter your LAST name and find your name in the list: </label><br><br>
<input type='text' name='full_name' value='' class='auto'></p>
</form>
I am making use of this javascript:
<script type="text/javascript">
$(function() {
$(".auto").autocomplete({
source: "search_develop.php",
minLength: 3
});
});
</script>