Could we help you? Please click the banners. We are young and desperately need the money
jQuery Nice Select is one of those old jQuery-based select overhaul packages. It's abandoned and outdated and its documentation is rather sparse, but you may still stumble upon and find yourself having to work with it. A common challenge you may encounter is listening to the select element changing or updating its value.
If you're here, you may have already tried attaching an event listener to the select element, listening to "change" or "Input", like so:
select.addEventListener('change', () => {
// do stuff
});
select.addEventListener('input', () => {
// do stuff
});
...which unfortunately does not work.
What does work, however, is listening through jQuery. So, attach the event listener with the desired callback to the select element like so instead:
jQuery(select).on('change', function() {
// do stuff
});