autocomplet with predefined value
Hi,
I'm looking for a solution to take an element value to an autocomplete event:
(something like this, but it's not working)
$("#article").autocomplete({
source: "getList.php?a&pid="+$('#pid').val(),
minLength: 2,
select: function(event, ui) { aset(ui.item ? (ui.item.id) : ""); }
});
the autocomlete works but I can't reach the "pid" element's value by this way in the getList.php
Is there any idea?