I am setting the selected value of a select list as below
$("#typeFilter").val("0");
My question is do making this, triggers $("#typeFilter").change event?
No it won't trigger the change event if you want to trigger the event after setting the value use trigger. Change event is triggered only if it is an interaction from device not with javascript.
$("#typeFilter").val("0");
$("#typeFilter").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