In my js file, a function is triggered when "click" event happens on checkbox, and on that click it checks which values are "checked" and selects those values. I am doing a click through code like :: $('#id').trigger("click"); or $('#id').click()
in this case, the function that is triggered on "click" is called, but when it checks if($('#id').checked)
, this returns false, and the "if-body" is never called.
Why is checked not set to true for that element when I am triggering a click on the checkbox?
Aucun commentaire:
Enregistrer un commentaire