| Author |
jQuery validation and radio buttons
|
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
Just stumbled upon another one: This time with the radio buton. The rendered HTML is as follows:
I can clearly see that the problem is because of the fact that both has the same name. But I can't help it as the server side code would like below;
Now this really needs a work around.
|
SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
Here is the rendered screenshot and by the way this validator plugin is really cool.
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
Oopss.... I guess I enough polluted the other topic. Good that you spun this off into a new one.
All right, do you have some clues for me on this one?
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
Made some progress. But now the error message is not displayed at all.
I also have added the following to my css:
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56229
|
|
Radio buttons must have the same name to be part of the same radio group.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
OK. Got rid of the problem:
My Struts tag looks like:
My validate method for jQuery looks like:
|
 |
 |
|
|
subject: jQuery validation and radio buttons
|
|
|