I have a form
<form name="form1" id="form_cont" method="post" action="creaza.php">
<label for="idno">IDNO</label>
<input type="text" name="idno" id="idno" value="">
<label for="tip_persoana">Tip Persoana</label>
<label for="first_name">Nume</label>
<input type="text" name="first_name" id="first_name">
<label for="last_name">Prenume</label>
<input type="text" name="last_name" id="last_name">
...
When I complet field id="idno" jQuery it showing me autocomplete.
$(document).ready(function()
{
$('#idno').autocomplete(
{
source: "autocomplet.php",
minLength: 3
});
});
If I select one of this autocomplet, another fields (last_name, first_name...) whill be complet automatically from database and they will be disabled.