I have two components: Modal and Checkbox. I want turn off the checkbox when the button in the modal (dialogue box) is clicked. The jquery code used in modal to control checkbox is given below. The checkbox is turned off successfully but change event of checkbox is not triggered.
$(`#${btn.changeToggleValue.toggleId}`).prop("checked", false);
Aucun commentaire:
Enregistrer un commentaire