Open Yoadd opened 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 })
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 })