I'm using struts2,i'm asking about the radio button validation
my form
< s: form action="creatingcv" method="post" onsubmit="return valider()" id="frmSaisie">
< s:radio name="cv.gender" label="Gender" list="{'Male','Female'}" id="Gender"/>
< /s:form>
i used this javascript code but it didnt work
function valider(){
frm=document.forms['frmSaisie'];
if (frm.elements['Gender'].value != "") {
return true;
}
else {
alert("Please choose your gender");
return false;
} }
i tested with other components this javascript code and it worked well but with this one it does nothing
i tested too
(frm.elements['Gender'].checked != false) but it returns nothing..
if Someone have and Idea Please Help..thxx
View Answers
Ads
Related Tutorials/Questions & Answers:
Advertisements
validation of radio button
validation of
radio button There are 3
radio button as A,B,W. there are another
radio as 1,2,3.if we select W in first
radio button then should select 2nd one(1,2,3).if we select A or B not need select any one from 1,2,3
Radio button Validation
Radio button Validation Hi..
How to validate
radio button in java?if the
radio button is not selected an error message should be given...
Please...()==false)){
JOptionPane.showMessageDialog(null,"Please select
radio button
radio button
radio button On selecting a
radio button, it should open a aspx page
Struts 2 Radio Button
radio buttons and
I am
using Struts2 tag.I want first rado
button to be selected by default.But when i select the second
radio button and hit on search
button i want to retain the selection of that second
radio button on search list
Struts 2 radio button value problem
Struts 2
radio button value problem When I use s:
radio tag in struts 2,
I'm not able to get the selected value
using document.getElementById('radioButtonName').value.(Note :-
I'm getting proper value in java from jsp)
It always
Query on radio button
Query on
radio button I am having a multiple row in jsp page.They are dynamically coming.
For each row there is one
radio button. I want to select... are displayed in the jsp page
using bean tag.
Please provide me some suggestion
passing value of radio button
passing value of
radio button hi,i have 3 jframe built
using the GUi editor in net beans 6.9. i have two
radio button in the first jframe.i have... for the jframes and radiobutton are already generated when
using the Editor.
my pseudo code
java radio button and exception
java
radio button and exception Dear Sir/Madam,
I have problem with my addBagelRadioButton and addCheeseRadioButton. There should be only 1
radio button can be selected, but somehow 2 can be selected the same time. Also, I
iPhone Radio Button Example
iPhone
Radio Button Example Can you please suggest me how to create
Radio button in my iPhone application. Actually, in my application i have two... click on that
button it get selected and by default it should display unselected
Radio Button in J2ME
to
demonstrate, how to create the
radio button in J2ME
using MIDlet. The
radio button is
use to choose only one option at a time. To create the
radio button we...
Radio Button in J2ME
 
Radio Button in HTML
to remember while
using Radio Button:
All
Radio Buttons within a group must share...
Radio Button in HTML is a type of input form that allows a user to select one
button from a group of
button. When a user clicks on a
radio button, it becomes
dependent radio button
of the
Radio Button is to select only one option at a time. So you don't need...dependent
radio button Hi. I have 4
radio buttons say all,chocolate,cookie,icecream. If I select all the other 3 should not able to be selected
Radio Button Problem in jsp.
radio button values from jsp to action
using javascript...
Radio Button Problem in jsp. I have a small doubt in my application, my requirement is to get a "single selectible row", I generated a
radio button
access into radio button
access into
radio button access the four fields of database called access,access file and stored in
radio button.please help
How to use radio button in jsp page
How to use
radio button in jsp page
This is detailed java code how to use
radio button in
jsp code and display a message in another jsp page according
pass radio button values to next page
pass
radio button values to next page how to pass selected
radio button values which coming from mysql database to next page
using php. Please show me with examples
Dojo Radio Button
Dojo
Radio Button
 .... For creating
radio button you need "dijit.form.CheckBox".
The
radio button do some action on press.
Try Online:
Radio
Button
The RadioButton class
Radio Button in Java
Radio Button in Java
Radio Button is a circular
button on web page that can be selected by the user.
The AWT Widget used to create a
radio button is Checkbox
Drop down and radio button value on edit action
Drop down and
radio button value on edit action HI,
I have... the value from dropdown and
radio button..
But the problem goes with edit action... for text boxes..bt select default value for dropdown and
radio button...How do
radio button value on edit action
...Problem '
m facing is on edit action '
m not retrieving
radio button value..i have used if else logic..Bt its not working...My edit.jsp code is:-
Radio button name...
radio button value on edit action This is my edit.jsp code...In my
check radio button on retrieving the value from database.
check
radio button on retrieving the value from database. HI
i am... database and according to that i want to check the
cash cheque
radio button... information from database the i want to show
cash
radio button checked.How can i do
Get radio button value after submiting page
Get
radio button value after submiting page
Radio buttons are dynamically generated.After selecting
radio button & submitting the page , the value of the selected
radio button get displayed in that jsp page.
<
Write a program to design a page.use radio button?
Write a program to design a page.use
radio button? i would lik to know
about well designed page
In the given code, we have used swing...");
radioGroup.add(Female);
JButton
button=new JButton("Submit");
lbl1.setBounds(50,50,70,20