Answers
Aug 09, 2010 - 01:46 AM
Hi Kalaivani0705The first step is to create the radio buttons 1st
2nd
The next step is to validate using the java script.function valbutton(thisform) {// place any other field validations that you require here// validate myradiobuttonsmyOption = -1;for (i=thisform.myradiobutton.length-1; i > -1; i--) {if (thisform.myradiobutton[i].checked) {myOption = i; i = -1;}}if (myOption == -1) {alert("You must select a radio button");return false;}alert("Gender : " + thisform.myradiobutton[myOption].value);// place any other field validations that you require herethisform.submit(); // this line submits the form after validation}Hope this helps
2nd
The next step is to validate using the java script.function valbutton(thisform) {// place any other field validations that you require here// validate myradiobuttonsmyOption = -1;for (i=thisform.myradiobutton.length-1; i > -1; i--) {if (thisform.myradiobutton[i].checked) {myOption = i; i = -1;}}if (myOption == -1) {alert("You must select a radio button");return false;}alert("Gender : " + thisform.myradiobutton[myOption].value);// place any other field validations that you require herethisform.submit(); // this line submits the form after validation}Hope this helps
Mar 31, 2012 - 10:56 AM
The question looks to be abandoned by the user who asked it. If no action is taken within 2 days, a Quomon Moderator will consider closing the question and distributing the points.
The Quomon Team
The Quomon Team
Add New Comment