Radio Button Validation

I have 6 radio buttons and one text box in a row.

<tr class="odd-row" align="center">

<td nowrap="nowrap" align="left">How satisfied are you with MasterCard’s

Implementation Process?</td>

<td><input type="radio" name="Q7_A_1" id="Q7_A_1" value="1" /></td>

<td><input type="radio" name="Q7_A_1" id="Q7_A_1" value="2" /></td>

<td><input type="radio" name="Q7_A_1" id="Q7_A_1" value="3" /></td>

<td><input type="radio" name="Q7_A_1" id="Q7_A_1" value="4" /></td>

<td><input type="radio" name="Q7_A_1" id="Q7_A_1" value="5" /></td>

<td><input type="radio" name="Q7_A_1" id="Q7_A_1" value="6" /></td>

<td><input type="text" name="Q7_B_1" id="Q7_B_1" maxlength="255" /></td>

</tr>

Like this I have 5 rows. when a radio button having value greater than 2 is selected then the textbox of the same row should become mandatory.This is applicable for all rows.

I want a generalized function for this.

If anybody know the solution for this please help.

[1189 byte] By [sucia] at [2007-11-27 5:41:04]
# 1
suci,Define "generalized function"... how generalised.Where do you need this validation in a servlet, or in a JSP page, or down in an EJB, or (heaven forbid) up in javascript land?Which language are you in?keith.
corlettka at 2007-7-12 15:18:09 > top of Java-index,Java Essentials,New To Java...
# 2
I want a generalised function in javascript. Im working in plain html. This is really very urgent requirement.
sucia at 2007-7-12 15:18:09 > top of Java-index,Java Essentials,New To Java...
# 3

> I want a generalised function in javascript. Im

> working in plain html. This is really very urgent

> requirement.

Okay. Now that we have that clarified, the best thing to do would be to ask the question on a Javascript forum. This is a Java forum. Try over there:

http://www.javaranch.com/

DrClapa at 2007-7-12 15:18:09 > top of Java-index,Java Essentials,New To Java...
# 4
> I want a generalised function in javascript. Im> working in plain html. This is really very urgent> requirement.But not so urgent that you could be bothered to find the right forum to ask your question? For shame.
cotton.ma at 2007-7-12 15:18:09 > top of Java-index,Java Essentials,New To Java...
# 5
I still say, there should be a movement to use ECMAScript consistently, instead of JavaScript.
Hippolytea at 2007-7-12 15:18:09 > top of Java-index,Java Essentials,New To Java...
# 6
> I still say, there should be a movement to use> ECMAScript consistently, instead of JavaScript.I would say the likelyhood of that happening on a scale of 1 to 10 is about a -3.
cotton.ma at 2007-7-12 15:18:09 > top of Java-index,Java Essentials,New To Java...
# 7
I like the title on this page: http://javascript.crockford.com/javascript.htmlJavaScript: The World's Most Misunderstood Programming Language
Hippolytea at 2007-7-12 15:18:09 > top of Java-index,Java Essentials,New To Java...