|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
This is my 3rd time i asking the question But no one is responding it that is there r 3 radio buttons each displaying seperate form user should use only one button at a time so if one button is in true state the remaing 3 should b in false state so if he select the second one the first & third should be in false state please reply soon |
|
#2
|
||||
|
||||
|
so what is the actual question? do you want to know how to make only one radio button selectable or do you want to know to detect which radio button is selected (using JavaScript)?
|
|
#3
|
|||
|
|||
|
OK, DO THE FOLLOWING
Let say that you have three PUSHB, and name them as :
The first one is CMD1 CAPTION = ADD CMD2 CAPTION = UPDATE CMD3 CAPTION = DELETE ''''''' ON CLICK EVENT''''''''''''''''' IF FORMS![FORM1]!CMD1 = TRUE THEN FORMS![FORM1]!CMD2 = FALSE FORMS![FORM1]!CMD3 = FALSE CODE........ CODE........ BLOCK......... FORMS![FORM1]!CMD1.SETFOCUS FORMS![FORM1]!CMD2 = TRUE FORMS![FORM1]!CMD3 = TRUE ENDIF |
|
#4
|
||||
|
||||
|
I see what you're asking. To group radiobuttons you just name them the same thing. I have provided a sample of two different button groups:
Code:
<form name="formName" method="post" action=""> <input type="radio" name="samename" value="radio1"><br> <input type="radio" name="samename" value="radio2"><br> <input type="radio" name="samename" value="radio3"><br><br> ...but these are part of another group<br> <input type="radio" name="differentname" value="radio4"><br> <input type="radio" name="differentname" value="radio5"><br> </form>
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.
|
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > radio button validation |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|