Ajax-Bootstrap-Select icon indicating copy to clipboard operation
Ajax-Bootstrap-Select copied to clipboard

No results event

Open engin-can opened this issue 4 years ago • 1 comments

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 avatar May 04 '20 06:05 engin-can

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

engin-can avatar May 04 '20 06:05 engin-can