我有一个类似于以下的标准 jQuery 自动完成设置:
$("input#autocomplete").autocomplete({
source: source,
minLength: 5 ,
select: function( event, ui ) {
alert(ui.item.value);
}
});
What I would like is, when the value is chosen, a data-table within the page appears and get populated with data from a database using the value as a search parameter.
因此,例如,如果我选择“ RED
”,则表格将显示并显示来自查询的数据,例如SELECT * FROM TABLE WHERE COLUMN='RED'
查询已简化,但谁能指出我正确的方向?