-1

I wish to customize bootsrap selectpicker but I'm really not able to understand how to catch the search text on keyup blocking the default dropdown menu from showing.

Anyone did this before and may help me on finding the right way?

Here it is what I wish to do:

enter image description here

Luca
  • 848
  • 1
  • 14
  • 33
  • Can you show us the code you have so far? – Don't Panic Apr 11 '20 at 03:59
  • Share the code please – Nikimaria87 Apr 15 '20 at 17:44
  • The code is not different from the one you can find here https://developer.snapappointments.com/bootstrap-select/examples/#live-search (paragraph "Live search") – Luca Apr 15 '20 at 21:05
  • Without your own code examples of what you have tried the only suggestion I can give is to hook into the listener(s) bootstrap adds to that element. This is a lot of work since bootstrap runs on page load and adds listeners to everything. You'll need to remove their event listeners, attach your own, and pass through/back to their listeners if you still want everything to work like normal still after you have done your processing. – Blizzardengle Apr 16 '20 at 03:10

1 Answers1

0

For the ones looking for a solution, the plugin's author just suggested me this resource https://github.com/truckingsim/Ajax-Bootstrap-Select . It seems ok.

Luca
  • 848
  • 1
  • 14
  • 33