jeudi 24 août 2017

is it possible to have a checkbox control two button state

i have a form with two buttons and a checkbox, i want when user checks the checkbox one of the button is enabled while the other button is disabled. So when the forms loads one will be enable by default and the other disabled, but after the checkbox has been checked the other becomes enabled while that which was enable by default become disabled..

i can actually do this for one button but i can do this for two button, please can someone with javascript skills help me out here thanks.




Aucun commentaire:

Enregistrer un commentaire