我只想在autocomplete.code中将参数传递给php
$(function(){
$( "#txt_supplier_account_name" ).autocomplete(
{
source:'./modules/stock/ajax/ajax.commonsearch.php',
select: function(event, ui) {
}
})
});
答案 0 :(得分:1)
通过source
网址,您可以发送
$( "#txt_supplier_account_name" ).autocomplete(
{
source:'./modules/stock/ajax/ajax.commonsearch.php?key1='+value1+'&key2='+value2,
select: function(event, ui) {
}
});
在ajax.commonsearch.php
中你可以GET
然后通过网址。
答案 1 :(得分:1)
试试这个
$( "#txt_supplier_account_name" ).autocomplete(
{
source:'./modules/stock/ajax/ajax.commonsearch.php?key1=value1&key2=value2',
select: function(event, ui) {
}
});