LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 09-09-2007, 02:44 AM   #1
rblampain
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 833

Rep: Reputation: 35
radio button: how to detect which was last checked in a multi group of buttons


I am a casual Javascript user.

I have an HTML script comprising a variable number of groups of radio buttons but clicking one button in one group may invalidate buttons selected in one or more other groups in which de-selecting some buttons will then become necessary through a Javascript script.

The concept is to readjust through the "onChange" or the "onClick" event all these buttons according to the last selected by the user until the user is satisfied with the selection and "submits".

Is it necessary to have two arrays, one showing the current state of all the radio buttons and the other showing the state of these buttons before the last "click" so the script can make the necessary changes?

Or is there a simpler solution?

Thank you for your help.
 
Old 09-10-2007, 12:49 PM   #2
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,062

Rep: Reputation: 491Reputation: 491Reputation: 491Reputation: 491Reputation: 491
Check this. If it doesn't provide a exact answer, you might get an idea how to solve your problem

www.javascripttoolbox.com

jlinkels
 
Old 09-11-2007, 08:42 AM   #3
rblampain
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 833

Original Poster
Rep: Reputation: 35
Thank you for the tip, I'll have a look at the link.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I find the length of all radio button? rblampain Programming 3 08-12-2007 09:35 PM
After battery died, radio button for wireless doesn't work! Shioni Linux - Hardware 3 11-16-2006 02:01 PM
Firefox radio buttons look absolutely hideous. Maritime Linux - Newbie 1 05-23-2006 02:40 AM
php radio button question jabfinger Programming 5 08-14-2005 10:36 AM
Java menus (radio buttons) and panels titanium_geek Programming 6 01-07-2004 11:13 AM


All times are GMT -5. The time now is 05:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration