Leo Leo - 1 year ago 180
Javascript Question

How to trigger change event for Chosen (jQuery)

Before I click reset button I choose "Company" in Chosen (dropdown list). The event occurs normally after I click reset. I choose "Company" again but event

in dropdownlist doesn't occur.

Could anyone tell me how to trigger the change event for dropdownlist after clicking reset button and then the same element?

The code I have so far:


Code for the reset button:

$("#btn_reset").click(function() {
$('.mchosen').each(function() {
$('#submenu').attr('disabled', 'disabled').html('');
$('#secondsubmenu').attr('disabled', 'disabled').html('');
$('#tabmenu').attr('disabled', 'disabled').html('');


Answer Source

This is what i figured out:


liszt:updated is no longer working in new version of chosen instead use below as Alexandru Cojan's answer suggesting

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download