This is a discussion on "[SOLVED] Selected radio button value" within the JavaScript Forum section. This forum, and the thread "[SOLVED] Selected radio button value are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Selected radio button value
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
[SOLVED] Selected radio button value
Hi!
I have some radio buttons that are generated from a mysql database. I've given all the radiobuttons values. How can i retrieve radiobutton value when a radio button is selected? As I understand it i need to use javascript? Here is my code:
Last edited by Rakuli; Nov 3rd, 2007 at 10:54. Reason: Please use BBC tags when pasting code ([php][/php]) |
|
|
|
#2
|
||||
|
||||
|
Re: Selected radio button value
For more detail you could set up a function.. eg
Hope that helps, Cheers
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#3
|
|||
|
|||
|
Re: Selected radio button value
Quote:
|
|
#4
|
||||
|
||||
|
Re: Selected radio button value
Yes, it will display the assigned value.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#5
|
|||
|
|||
|
Re: Selected radio button value
I tried but nothing happens when i select a button(page loads fine). For some reason i get syntax code on line 137(marked it/ctrl+f). I guess i messed something up. I just pasted in ur code like this:
Complete code:
Last edited by Pugger; Nov 3rd, 2007 at 11:44. |
|
#6
|
||||
|
||||
|
Re: Selected radio button value
with your onclick="",
surround the onclic with double quotes " not single quotes '
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#7
|
|||
|
|||
|
Re: Selected radio button value
Used double quote now the page wont load
|
|
#8
|
|||
|
|||
|
Re: Selected radio button value
I used
|
|
#9
|
||||
|
||||
|
Re: Selected radio button value
I can't see why you would want access to the name over the value but glad you got it sorted anyway.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Automatic Checkbox/Radio Button Checking | Stuart | JavaScript Forum | 8 | Nov 9th, 2007 01:55 |
| [SOLVED] Radio Button Response! :( | jahphill | PHP Forum | 33 | Oct 25th, 2007 22:15 |
| [SOLVED] large radio button form submit | chriscant | JavaScript Forum | 7 | Oct 25th, 2007 09:03 |
| Any way to use an image for a radio button? | masonbarge | Web Page Design | 23 | Jan 6th, 2007 09:06 |
| automatic pop-up when click on a radio button | joshcxa | JavaScript Forum | 2 | Aug 1st, 2006 06:06 |