Topic: Material Select use jQuery listen item click event
Hsunight
free
asked 8 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
Add comment
Magdalena Obalska
free
answered 8 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);
});
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Specification of the issue
- ForumUser: Free
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: Yes
Tags