【发布时间】:2013-10-20 07:46:14
【问题描述】:
在行动课
public class Supplier extends ActionSupport{
private ArrayList supplierList;
//contains list of supplisers with attribute(id,name,address,mailid)
//getter and setter of supplierList
}
这是我的表单(在 Jsp 中)
<form action="test" method="post">
<input type="text" name="supplierName" id="supplierName">
<input type="hidden" name="supplierId" id="supplierId">
</form>
我想显示供应商列表名称的自动完成功能,根据所选名称,我想在文本和隐藏框中设置它的 ID 和名称,在提交表单时我想发送元素的 ID
【问题讨论】:
-
我只能在 jsp 页面上显示自动完成
标签: jquery autocomplete