+ 1
How to disactive
I have a form it contain a check box and some elements What is the code that if the visitor checked in check box a specific element in the form will disactive
2 ответов
+ 1
This post shows you how to bind an event to a click/unclick of a checkbox:
https://stackoverflow.com/questions/32438068/perform-an-action-on-checkbox-checked-or-unchecked-event-on-html-form/32438124#32438124
This post shows how to deactivate a form field using JavaScript:
https://stackoverflow.com/questions/12896698/how-to-disable-an-input-field-using-javascript
Combine the two techniques to deactivate a field when clicking a checkbox.
0
Thanks so much