Hi, as you can see below on my page I have a checkbox and text input box, there are a number of these on the page. The checkbox is always “orderxxx” where xxx is a number while the text input box is always “orderxxx_q”, an example being:
<input name=”order223″ type=”checkbox” value=”MailTuff”>
<input name=”order223_q” type=”text”>
Is there any way when the user presses submit that the form wont submit unless both have been checked/entered? Bear in mind that there are a few of these on the page and if the user doesnt want to order something he/she will simply leave both blank. I’m just looking to validate if he/she checks the box but doesnt enter a value or enters a value but doesnt check the box.
Please help!