truckingsim / Ajax-Bootstrap-Select

This uses the bootstrap-select plugin and extends it so that you can use a remote source to search.
MIT License
280 stars 97 forks source link

No results event #189

Open engin-can opened 4 years ago

engin-can commented 4 years ago

How can I catch the 'No results' event? I want to disable a different field when there are no results. How can I do this?

engin-can commented 4 years ago

I noticed that it triggers changed.bs.select when it found results for query ('apple' and 'amazon' in gif) and when I select an option. It doesn't get triggered when no results for query were found ('asdf' in gif).

My goal is to enable Name input element when option is selected and disable the Name input element when no option is selected. Any idea can I do this?

screenshot