How can I set extra parameters to the query like
q=myseed&filter=1,2,34
better will be with a attached event like
onFoc
This is possible by the plugin's native functionality(at least with the current version), it is just not written in the documentation: there is onSend callback in the code. Here is simple example
$(".my-input").tokenInput('autocomplete.php', {
hintText: false,
onSend: function(param1) {
// console.log($(this));
// console.log(param1);
param1.data.my_key = 'my_value';
}
});