Everyone is always indebted.

We currently operate a website using WordPress, and we have an inquiry form in it.
We used "MW WP FORM", a WordPress plug-in, when installing the form.

I would like to ask you how to allow or restrict entry of the B/C item check box depending on the value in the A item check box in the form. is.

An image is attached for reference.

  • Answer # 1

    Monitor input (change event etc.) with JavaScript

    Check checkbox status as you type

    Give the disabled attribute to elements that should not be selected, and take the disabled attribute from selectable elements

    [[Introduction to jQuery] Summary of how to set/cancel/determine the disabled attribute! | Sakai Engineer School Blog | Learning Information Site for Programming Beginners]

    [JavaScript-Various ways to set the value to disabled-Miuran Business Systems]

    [Cautions and countermeasures when using the disabled attribute in the HTML input element | Work notes of glasses SE]