473,395 Members | 2,468 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.

radio buttons as a group

Mel
i have a list of 10 radio buttons all with the same ID=R100

i need a javascript to select (checked) say the 4th radio button AFTER
the form is created

Please help this newbeee

Apr 6 '07 #1
3 1392
Mel said the following on 4/6/2007 3:33 PM:
i have a list of 10 radio buttons all with the same ID=R100

i need a javascript to select (checked) say the 4th radio button AFTER
the form is created

Please help this newbeee
Try RTFM for a change. It is very enlightening. And, you can search the
archives of clj for the string "select radio button". At least make some
sort of effort to attempt to learn how to do it, then post your
non-working code. People here tend to frown upon people wanting someone
to do the coding for them. Especially when it sounds a lot like homework.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 6 '07 #2
Mel
On Apr 6, 12:47 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
Mel said the following on 4/6/2007 3:33 PM:
i have a list of 10 radio buttons all with the same ID=R100
i need a javascript to select (checked) say the 4th radio button AFTER
the form is created
Please help this newbeee

Try RTFM for a change. It is very enlightening. And, you can search the
archives of clj for the string "select radio button". At least make some
sort of effort to attempt to learn how to do it, then post your
non-working code. People here tend to frown upon people wanting someone
to do the coding for them. Especially when it sounds a lot like homework.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/
i did google the question "How can i set a radio button in a group"
and i could not find an answer.
My Apologies to the group. I checked the FAQ links you sent me and
still can not see it

Apr 6 '07 #3
Lee
Mel said:
>
i have a list of 10 radio buttons all with the same ID=R100

i need a javascript to select (checked) say the 4th radio button AFTER
the form is created

Please help this newbeee
1. Your shift key seems to work, so please capitalize the first person
singular pronoun, particularly at the beginning of sentences.
This isn't chat. It isn't email to your bud.
It's a technical newsgroup, where "i" is most often an integer loop
variable.

2. You should never have more than one element with the same ID.
Radio buttons in a group should have the same NAME attribute.

3. Is there a reason why you can't create the button with the "selected"
attribute set?
--

Apr 6 '07 #4

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

Similar topics

1
by: John Mullen | last post by:
I want to take the following HTLM and use javascript to turn on radio buttons if checkbox is checked, can I do this with javascript (maybe onClick or an array) or do i need a server side script ?...
3
by: elhombrebala | last post by:
With this script I can force the user to select the checkbox befor continuing, but now I have a menu with lots of radio unputs and I woul like the user to select at least 2 of them; how can I check...
1
by: Rick | last post by:
After being frustrated with this issue on several occasions I think I found the secret sauce for solving the issue after reading a few different messages about what others thought and trying a...
6
by: Craig Keightley | last post by:
I have a page that has n number of radio groups (yes/No) how can i prevent the form being submitted if more than one radio group is not selected? By default all radio groups are unchecked ...
3
by: Flip | last post by:
In setting up a radio button group last night, I added two radio buttons, gave each of them their respective name and gave them both the same group name. So far so good. But then when I tried to...
2
by: James P. | last post by:
Help, I need to display radio buttons on a form. The data is from SQL table: each row in each table is displayed as a radio button. I have multiple SQL tables so I understand I need to put...
7
by: Jerim79 | last post by:
My situation is that I have a form that asks the user for a number. Next, I execute a while loop that displays a group of questions the amount of times the customer entered. For instance, the loop...
2
by: dpazza | last post by:
Hi, I'm creating a quiz on using a form in VB 2005 express. I have four sets of questions and answers (labels and radio buttons) and I change between which set of questions is currently shown on...
3
by: teddysnips | last post by:
Back in the dim mists of antiquity I used to program in VBA for Microsoft Access (hey, don't knock it - very useful tool for the right application). This had a really handy control in the...
5
by: alanb | last post by:
Hi, hope someone can help, I need to be able to keep a running total of radio buttons selected, as a user goes through a set of 16 questions, devided in to 4 catorgories, then on "submit" have the...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.