jeudi 7 décembre 2017

Checking if checkbox is checked, display both booleans

I am trying to determine whether the checkbox is checked or not, but when I push the checkbox, the javascript displays:

false
true

And when I push it again it changes to

true
false

And then it continues as I push further...

How can I only display one of those?




Aucun commentaire:

Enregistrer un commentaire