LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-12-2007, 01:58 AM   #1
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Rep: Reputation: 52
how can I find the length of all radio button?


I have searched the net and found plenty of advice on how to find the length of a group of radio button in javascript but nothing on how to find the length of all the radio button.

In this case, it is useless to search by name because the names are unpredictable.

Eventually, I can add the 'id="id"' tag with the same id for all radio button but is this necessary?

Thank you for your help.
 
Old 08-12-2007, 08:31 AM   #2
BlackRabbit
Member
 
Registered: Oct 2003
Distribution: Debian
Posts: 83

Rep: Reputation: 15
What _is_ exactly the 'length' of a radio button??
You mean the length of it's name?
 
Old 08-12-2007, 09:29 PM   #3
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Original Poster
Rep: Reputation: 52
javascript uses the word "length" to find the number of items that exist, I also find the practice confusing.

For example the javascript statement:
var radio = radioObj.length
the variable "radio" should tell how many "radio.Obj" there is.
 
Old 08-12-2007, 09:35 PM   #4
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Original Poster
Rep: Reputation: 52
javascript uses the word "length" to find the number of items that exist, I also find the practice confusing.

For example the javascript statement:
var radio = radioObj.length
the variable "radio" should tell how many "radio.Obj" there is.
 
  


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
After battery died, radio button for wireless doesn't work! Shioni Linux - Hardware 3 11-16-2006 02:01 PM
Find Length of char * array in C++ burninGpi Programming 6 08-08-2006 08:53 AM
Segmentation Fault after adding a radio button into my compiled app/ Gnarg Programming 2 10-18-2005 06:47 AM
php radio button question jabfinger Programming 5 08-14-2005 10:36 AM
Shell scripting to find length of filenames ridertech Linux - Newbie 2 08-25-2004 12:07 PM

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

All times are GMT -5. The time now is 02:39 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