Topic: event for input on mdb-select with searchable option
                  
                  generalsoftsrl
                  pro
                  asked 7 years ago
                
Hi,
how i can fire the event of the searchable control for every character typed in the mdb-select component ?
regards Paolo
                      
                        Add comment
                      
                    
                  
                
                      
                      Sebastian Kaczmarek
                      staff
                        answered 7 years ago
                    
You have to bind a handler to the `input` event on the search input tag. Try this:
$('#my-select').closest('.select-wrapper').on('input', '.search-wrap input', function(e){
    console.log(e.target.value);
});Hope it helps!
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
              Answered
Specification of the issue
              - ForumUser: Pro
 - Premium support: No
 - Technology: MDB jQuery
 - MDB Version: 4.5.10
 - Device: all
 - Browser: all
 - OS: all
 - Provided sample code: No
 - Provided link: No
 
Tags