0

How to set the rule so that :

for a checkbox a, when it is clicked, the textbox a is required

And the number of checkbox is flexible , i can not define the checkbox one by one

But the number of checkbox is equal to textbox , that is for sure

Thank you

1 Answer 1

1

AFAIK, you render check boxes along with text boxes.So these two will always be equal to each other. So when you click on check box, automatically its pair textbox will also be present.Otherwise, no check box will be rendered without the textbox.That way you can avoid one more checking.Hope this will help you.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.