danielfarrell / bootstrap-combobox

A combobox plugin that works with twitter bootstrap
847 stars 327 forks source link

How to trigger an input change event when clearIfNoMatch is set to false #279

Open Yoadd opened 3 years ago

Yoadd commented 3 years ago

I would like to dynamically insert options into my select element but the options need to be filtered on the server first.

So each time the user click a key , an ajax call is sent with the corresponding text.

I would like to know how to set an Input change event so that I may call ajax.

Something like:

$('#selectId').on('input', function (ev) { // call ajax here })