【发布时间】:2013-01-20 13:28:54
【问题描述】:
我有一个表格
<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">
...
当我完成字段 id="idno" jQuery 时,它会显示自动完成。
$(document).ready(function()
{
$('#idno').autocomplete(
{
source: "autocomplet.php",
minLength: 3
});
});
如果我选择此自动完成中的一个,其他字段(姓氏、名字...)将从数据库中自动完成并且它们将被禁用。
【问题讨论】:
-
你必须为它创建自定义函数。
-
我不明白你的问题。请详细说明!