-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: diniya25
Message 2 in Discussion
Hi,
The validation control is only for ASP.Net Server side control.
If u want to validate HTML Radio button control
Create group for radio button control
<input type="radio" name="group1" id="r1" value="1" />
<input type="radio" name="group1" id="r2" value="2" />
<input type="radio" name="group1" id="r3" value="3" />
var btn = valButton(form.group1);
if (btn == null) alert('No radio button selected');
else alert('Button value ' + btn + ' selected');
Call this function
function valButton(btn) {
var cnt = -1;
for (var i=0; i < btn.length; i++) {
if (btn[i].checked) {cnt = i; i = btn.length;}
}
if (cnt > -1) return btn[cnt].value;
else return null;
}
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]