473,395 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to get only radio buttons from getElementsByTagName method?

I am just started using getElementsByTagName. I dont know how to
filter radio buttons from all other INPUT fields. Is there any way to
do that without looping through all the INPUT fields?
Feb 15 '08 #1
6 5042
If u use Prototype JS, there is

$(form).getInputs('radio', 'radio_name');
Feb 15 '08 #2
rf

"Rauan Maemirov" <ra*******@gmail.comwrote in message
news:20**********************************@s12g2000 prg.googlegroups.com...
If u use Prototype JS, there is
No. Don't use over 100K of "library" just to avoid looping through all input
fields and filtering for radio buttons, which is what that "library" does
anyway.

And, what is a u?

--
Richard.
Feb 15 '08 #3
On Feb 15, 5:54 pm, "rf" <r...@invalid.comwrote:
"Rauan Maemirov" <rauan1...@gmail.comwrote in message

news:20**********************************@s12g2000 prg.googlegroups.com...
If u use Prototype JS, there is

No. Don't use over 100K of "library" just to avoid looping through all input
fields and filtering for radio buttons, which is what that "library" does
anyway.

And, what is a u?

--
Richard.
I mean, u could watch its' code. ;)
Feb 15 '08 #4
rf

"Rauan Maemirov" <ra*******@gmail.comwrote in message
news:a3**********************************@h11g2000 prf.googlegroups.com...
On Feb 15, 5:54 pm, "rf" <r...@invalid.comwrote:
>"Rauan Maemirov" <rauan1...@gmail.comwrote in message

news:20**********************************@s12g200 0prg.googlegroups.com...
If u use Prototype JS, there is

No. Don't use over 100K of "library" just to avoid looping through all
input
fields and filtering for radio buttons, which is what that "library" does
anyway.

And, what is a u?

--
Richard.

I mean, u could watch its' code. ;)
Prototype is not a good example of how to do things.

What is a u? If you mean the word "you" then why not just type it?

--
Richard.
Feb 15 '08 #5
ya*********@gmail.com wrote:
I am just started using getElementsByTagName. I dont know how to
filter radio buttons from all other INPUT fields. Is there any way
to do that without looping through all the INPUT fields?
You may use this XPath expression: //input[@type="radio"]

A similar question has been asked and answered here before.
Please search before you post.

http://jibbering.com/faq/
PointedEars
Feb 17 '08 #6
In comp.lang.javascript message <47**************@PointedEars.de>, Mon,
18 Feb 2008 00:05:35, Thomas 'PointedEars' Lahn <Po*********@web.de>
posted:
>ya*********@gmail.com wrote:
>I am just started using getElementsByTagName. I dont know how to
filter radio buttons from all other INPUT fields. Is there any way
to do that without looping through all the INPUT fields?

You may use this XPath expression: //input[@type="radio"]

A similar question has been asked and answered here before.
Please search before you post.
Best to ignore such remarks. BigEars has a Deity Complex, and does not
know how to act as a human being..

--
(c) John Stockton, nr London UK. ??*@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/- FAQish topics, acronyms, & links.
Check boilerplate spelling -- error is a public sign of incompetence.
Never fully trust an article from a poster who gives no full real name.
Feb 18 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Paul Thompson | last post by:
I am trying to use various javascript tools, all of which work in NN, to work in IE. Here's my latest annoyance. I get a list of all objects on a page using docContents =...
3
by: Ferret Face | last post by:
Hello, I have a web page that gets the user to select items from a list of options. This list is a set of independant Radio Buttons. I did not use a Radio Button List because I wanted the...
1
by: Jerry | last post by:
We have a 10-question quiz for kids, each question being a yes or no answer using radio selections. I'd like to keep a current total of yes's and no's at the bottom of the quiz (if the user selects...
5
by: Dabbler | last post by:
What is the best way to handle data interpolation between form controls and the actual sql data field. I have radio buttons that need to be interpreted, form values that have to be translated.....
7
by: nathaniel.k.lee | last post by:
Is it not possible, in IE, to dynamically click a radio button? I'm grabbing some values from a database and using them to populate radio buttons on a page. I have alternate code for Firefox...
0
by: satish | last post by:
.Hi, Can anybody help me!!!!!! how to automate selection of radio buttons using vb.net. I am using mshtml.htmldocument Public Sub OpenDownloadDataPage(ByRef wbBrowser As...
10
by: IchBin | last post by:
I am trying to set the state of a radio button. I do not see what I am doing wrong. Sorry, I am new at this.. I need another set of eyes to look at this snip of code. I am trying to set the radio...
7
by: moksha | last post by:
Hi, I am new to javascript and i am facing a problem in coding. plz help me out. I am using javascript for dynamically creating a table row which contains text boxes and radio...
5
by: mad.scientist.jr | last post by:
According to http://www.quirksmode.org/js/forms.html you need to look through a radio button's members to find the value: I tried writing a reusable function to return the value, see code at:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.