Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

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
Senior Member
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Stretch/Sid, Linux Mint DE
Posts: 4,605

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

Old 09-11-2007, 08:42 AM   #3
Senior Member
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 1,015

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


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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:46 AM.

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