Hello,
I need add function autocomplete from "https://www.devbridge.com/sourcery/components/jquery-autocomplete/" to edit input.
When I enter values in the input field when editing an entry, I need to call the code:
$('#auotocomplete1').autocomplete({
serviceUrl: 'http://xx.xx.xx.xx/query/1.php',
paramName: 'name',
delimiter: /(,|;)s*/,
});
JSLib including
<script src="js/jquery.autocomplete.js" type="text/javascript"></script>
You can connect this function like select2 integration in this demos/integration/dropdown-select2.php.
$col["editoptions"]["dataInit"] = "function(){ setTimeout(function(){ link_autocomplete('{$col["name"]}'); },200); }";
and in html:
<script>
function link_autoccomplete(id)
{
….. // your code
}
</script>