I use jquery autocomplete.
And I want add to source URL attribute from this input. How?
This code don't work:
$('input.autocomplete').autocomplete({
source: "/service/autocomplete/"+$(this).data('source'),
minLength: 2,
select: function( event, ui ) {
console.log( ui.item );
}
"/service/autocomplete/"+$(this).data('source')?And I want add to source URL attribute from this input. How?really isn't giving us much to go on. What do you mean you want to add to it? do you mean you want to dynamically change it on a per need basis? what exactly outside of theautocompletestock functions are you attempting to do?