LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   how can I find the length of all radio button? (https://www.linuxquestions.org/questions/programming-9/how-can-i-find-the-length-of-all-radio-button-576469/)

rblampain 08-12-2007 01:58 AM

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.

BlackRabbit 08-12-2007 08:31 AM

What _is_ exactly the 'length' of a radio button??
You mean the length of it's name?

rblampain 08-12-2007 09:29 PM

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.

rblampain 08-12-2007 09:35 PM

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.


All times are GMT -5. The time now is 02:44 PM.