+ 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

7th Dec 2019, 9:27 PM
Eyad Farah
Eyad Farah - avatar
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.
10th Dec 2019, 8:12 AM
Beeman
Beeman - avatar
0
Thanks so much
10th Dec 2019, 1:54 PM
Eyad Farah
Eyad Farah - avatar