Topic: Material Select use jQuery listen item click event

Hsunight free asked 5 years ago


Hi! How can I use jQuery listen item click event? I need to fire the event when I click material select item. thx! SourceCode

Hsunight free answered 5 years ago


It's work, thanks!

Magdalena Obalska free answered 5 years ago


Hi, try to use something like the code below: $('.mdb-select').material_select(); $('.mdb-select li').on("click", function() { alert($(this).prevAll().length); });

Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: Yes
Tags