Why trigger () doesn’t work

I have a function when changing this

$(function(){

$container = $(‘.simulators-arcive’);

$container.isotope();
// do stuff when checkbox change
$(‘#options’).on( ‘change’,function( e ) {
var $checkbox = $( e.target );
manageCheckbox( $checkbox );

var comboFilter = getComboFilter( filters );

$container.isotope({ filter: comboFilter });

});

});

And when the page comes up there is a selection function on some input, and after the activation marker on change, why doesn’t it work?

$(‘.checked’).prop(‘checked’, true);
$(‘#options’).trigger(‘change’);

Read more here:: Why trigger () doesn’t work

Leave a Reply

Your email address will not be published. Required fields are marked *