473,616 Members | 2,973 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get only radio buttons from getElementsByTa gName method?

I am just started using getElementsByTa gName. 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 5053
If u use Prototype JS, there is

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

"Rauan Maemirov" <ra*******@gmai l.comwrote in message
news:20******** *************** ***********@s12 g2000prg.google groups.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.c omwrote:
"Rauan Maemirov" <rauan1...@gmai l.comwrote in message

news:20******** *************** ***********@s12 g2000prg.google groups.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*******@gmai l.comwrote in message
news:a3******** *************** ***********@h11 g2000prf.google groups.com...
On Feb 15, 5:54 pm, "rf" <r...@invalid.c omwrote:
>"Rauan Maemirov" <rauan1...@gmai l.comwrote in message

news:20******* *************** ************@s1 2g2000prg.googl egroups.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*********@gma il.com wrote:
I am just started using getElementsByTa gName. 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.javas cript message <47************ **@PointedEars. de>, Mon,
18 Feb 2008 00:05:35, Thomas 'PointedEars' Lahn <Po*********@we b.de>
posted:
>ya*********@gm ail.com wrote:
>I am just started using getElementsByTa gName. 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.demo n.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demo n.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
7729
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 = document.getElementsByTagName("*"); for (var i=0; i < docContents.length; i++) { if (docContents.type == 'text' ||
3
2458
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 possibility of multiple selections. However, one item is "None of the above" and I have placed some logic (autopostback, etc.) that will remove all previous selections if "None of the above" is chosen. My problem is this: This list of Radio Buttons...
1
8828
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 yes to question 1, the total of yes's increases by 1). I've been searching for a while but I'm not sure I'm searching with the right keywords. Can anyone direct me to a source I can review to learn how to do this? Thanks! --
5
1913
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.. e.g. if (tbDaysDriveAlone.Text > 0) sb.Append( @"drive\"); if (tbDaysVanPool.Text > 0) sb.Append(@"vanPool\"); if (tbDaysCarpool > 0) sb.Append(@"Carpool\"); myObjectInstance.CommuteMethod = sb.ToString(); Should this be done in an event method...
7
2524
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 browsers using the setAttribute() function. Everything works as planned in Firefox but in IE, the buttons won't populate and, what's worse, I can't even click on them after everything loads. I see the slight shadow that indicates you're clicking on a...
0
2099
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 SHDocVw.InternetExplorer) Dim HTMLDoc1 As mshtml.HTMLDocument Dim iHtmlCol As IHTMLElementCollection Dim iHtmlEle As IHTMLElement
10
6071
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 button with this link of code: echo 'SCRIPT language=JavaScript setCheckedValue("'.$_SESSION.'");</SCRIPT>'; //? <snip of code>
7
4858
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 buttons and check box. I am adding two radio buttons once for a row.Now my problem is the radio buttons in all the rows that added dynamically are behaving as same group i.e when i am selecting a radio button in second row,radio button in first row...
5
3592
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: http://www.geocities.com/usenet_daughter/javascript_radio.htm but for some reason I can only get a value if I hard code the control name.
0
8203
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8146
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8647
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8297
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7121
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5550
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2579
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.