|
|
|
|
|
| | |
|
Active Server Pages ASP programs help tutorial tutorials routine routines jobs listserve mailinglist bulletin board bulletin boards programming snippet snippets CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: enumerating radio buttons |
From: |
Shailesh Lolam |
Date: |
5/5/2000 12:33:56 AM |
IP: |
203.94.238.155 |
Hi there,
you can use JavaScript for that,
EXAMPLE
document.myform.optmyradio.length;
the above statement will give u the number of radio buttons but if the radio button is only 1 then it throws an error.
There if one more method of doing that.
while generating the radio buttons you can count the buttons in the loop which you are using, save that count in an hidden form field or in a JavaScript constant;
EXAMPLE
<script language= JavaScript>
var radiocount = <%=cnt%>//cnt if the loop count of the radio button in the loop
....
...
...
</script>
GOOD LUCK
Shailesh Lolam |
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|