Click check box to disable two input fields | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Click check box to disable two input fields

I have a form and i need when someone click on checkbox some fields disable in form. Please suggest me good code

8th Apr 2020, 11:16 AM
MUHAMMAD ASIF
MUHAMMAD ASIF - avatar
1 Answer
0
if(element.checked){...do something..} else{...do something..}
8th Apr 2020, 11:33 AM
durian
durian - avatar