event for input on mdb-select with searchable option


Topic: event for input on mdb-select with searchable option

generalsoftsrl pro asked 6 years ago

Hi,

how i can fire the event of the searchable control for every character typed in the mdb-select component ?

regards Paolo


Sebastian Kaczmarek staff pro premium answered 6 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!


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: 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