![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
Radio
<html> <form> <input type="radio"> <input type="radio"> </form> </html> How do I get it to alternate the "radios" when I click them? Last edited by navnav; Apr 16th, 2005 at 5:23 PM. |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
Sorry for the double topic, I thought it screwed up the first time and didnt get posted.
|
|
|
|
|
|
#3 |
|
Programmer
|
From what I can remember, give both input types the same name, but a different value.
<input type="radio" name="gameType" value="action"> <input type="radio" name="gameType" value="shooter"> Let me know if this works, as I can't quite remember. kirkl_uk |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
|
it worked
thanks ![]() Were you unsure because you use XHTML now, or you just havent used HTML in a while? Is there anything you could do with XHTML that you can't do with HTML? Last edited by navnav; Apr 16th, 2005 at 12:51 PM. Reason: Question |
|
|
|
|
|
#5 |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 6
![]() |
initially you created two separate radio buttons. the one that worked created one set of radio buttons with two choices, which is what you must do. you can have 500 radio buttons that only select one choice, but you have to initialize that radio button and define the instances of it like he said above.
__________________
i put on my robe and wizard hat... Have you ever heard of Plato, Aristotle, Socrates?...Morons. |
|
|
|
|
|
#6 | |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 6
![]() |
Quote:
__________________
i put on my robe and wizard hat... Have you ever heard of Plato, Aristotle, Socrates?...Morons. |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|