samedi 2 juillet 2016

jQuery on change event not triggered by jQuery itself?

I placed a listener on all checkboxes on my page with .on('change'). When clicking on a checkbox it actually detects the change and fires a function. BUT, when I use a jQuery function to set a checkbox to checked like so: $('#checkboxOne').prop('checked', true) the .on('change') doesn't detect a change? How come?




Aucun commentaire:

Enregistrer un commentaire