Hi All, I am facing this problem of validating drop downs in a lists. There is a list of checkboxes and corresponding select boxes, if a particular checkbox within an <li> is checked, then the corresponding select box should have a value selected, else throw and error. Please help....
The html code is as follow...
<ul>
<li><input type="checkbox" name="status" />
<select name="select1a">
<option>Value 1</option>
<option>Value 2</option>
</select>
<select name="select1b">
<option>Value 1</option>
<option>Value 2</option>
</select>
</li>
<li><input type="checkbox" name="status" />
<select name="select2a">
<option>Value 1</option>
<option>Value 2</option>
</select>
<select name="select2b">
<option>Value 1</option>
<option>Value 2</option>
</select>
</li>
<li><input type="checkbox" name="status" />
<select name="select3a">
<option>Value 1</option>
<option>Value 2</option>
</select>
<select name="select3b">
<option>Value 1</option>
<option>Value 2</option>
</select>
</li>
</ul>
<input type="submit" name="Approve" />
Thanks....