1 2 3 4 5 6 7 8 9 10 11 12 13
$(document).ready(function() { var a; a = $("#poke-recip").autocomplete({ serviceUrl: baseurl + '/acl', minChars: 2, width: 350, onSelect: function(value,data) { $("#poke-recip-complete").val(data); } }); a.setOptions({ params: { type: 'a' }}); });