LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Rep: Reputation: 52
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
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
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
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Original Poster
Rep: Reputation: 52
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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:24 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration