How can a dropdown list can be opened with a trigger?
Here is the code which doesn't work:
$('select').trigger('click');
Just for note - mousedown and mouseup also doesn't work.
$('select').children('option').each(function() { if ($(this).is(':selected')) { $(this).trigger('change'); } });
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With