By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,384 Members | 927 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,384 IT Pros & Developers. It's quick & easy.

element question

P: n/a
Hi, I'm pretty novice with javascript but it's coming along. I've got
a form with say 4 radio buttons listed -
option1
option2
option3
other (please specifiy)
then a 25 charachter text box to place your input.

What I want to do is if the option1,2,3 radio button is selected and
then you click in the textbox to type in your own custom option then
the radio button will change to the 4th radio button specifying
'other'.
Within this of the 4 options only one can be selected of the 4.

Hope this make sense.

mdd

Dec 30 '05 #1
Share this Question
Share on Google+
10 Replies


P: n/a
mdonahoe wrote:
Hi, I'm pretty novice with javascript but it's coming along. I've got
a form with say 4 radio buttons listed -
option1
option2
option3
other (please specifiy)
then a 25 charachter text box to place your input.

What I want to do is if the option1,2,3 radio button is selected and
then you click in the textbox to type in your own custom option then
the radio button will change to the 4th radio button specifying
'other'.
Within this of the 4 options only one can be selected of the 4.

Hope this make sense.


It does.
PointedEars
Dec 30 '05 #2

P: n/a
Thomas 'PointedEars' Lahn wrote:
Hi, I'm pretty novice with javascript but it's coming along. I've
got a form with say 4 radio buttons listed -
option1
option2
option3
other (please specifiy)
then a 25 charachter text box to place your input.

What I want to do is if the option1,2,3 radio button is selected and
then you click in the textbox to type in your own custom option then
the radio button will change to the 4th radio button specifying
'other'.
Within this of the 4 options only one can be selected of the 4.

Hope this make sense.


It does.


Pointy Ears, once again more adding noise to this group than VK on most
days.

To the OP:

<input type="text" name="other"
onFocus="this.form.radiobuttongroupname[3].checked=true">

That's one short way of accomplishing what you want.

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Dec 30 '05 #3

P: n/a
Matt Kruse wrote:
Thomas 'PointedEars' Lahn wrote:
Hi, I'm pretty novice with javascript but it's coming along. I've
got a form with say 4 radio buttons listed -
option1
option2
option3
other (please specifiy)
then a 25 charachter text box to place your input.

What I want to do is if the option1,2,3 radio button is selected and
then you click in the textbox to type in your own custom option then
the radio button will change to the 4th radio button specifying
'other'.
Within this of the 4 options only one can be selected of the 4.

Hope this make sense.
It does.


Pointy Ears,


It is PointedEars, thanks.
once again more adding noise to this group than VK on most days.


Why, it does make sense. If there was a question, then this
was the correct answer :)

Maybe the OP should learn how to ask (the right) questions ...
HTH & HAND

PointedEars
Dec 30 '05 #4

P: n/a
Thank you very much that did the trick.

Dec 30 '05 #5

P: n/a
Thomas 'PointedEars' Lahn said the following on 12/30/2005 2:50 PM:
Matt Kruse wrote:

Thomas 'PointedEars' Lahn wrote:
Hi, I'm pretty novice with javascript but it's coming along. I've
got a form with say 4 radio buttons listed -
option1
option2
option3
other (please specifiy)
then a 25 charachter text box to place your input.

What I want to do is if the option1,2,3 radio button is selected and
then you click in the textbox to type in your own custom option then
the radio button will change to the 4th radio button specifying
'other'.
Within this of the 4 options only one can be selected of the 4.

Hope this make sense.

It does.
Pointy Ears,

It is PointedEars, thanks.
once again more adding noise to this group than VK on most days.

Why, it does make sense. If there was a question, then this
was the correct answer :)


That wasn't the desire the OP wanted. If you want to be obtuse, be
obtuse but be prepared.
Maybe the OP should learn how to ask (the right) questions ...


And maybe you should learn how to read between the lines to read the
question.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?

Please quote what you are replying to.

If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers.

Dec 30 '05 #6

P: n/a
Thomas 'PointedEars' Lahn wrote:
Pointy Ears,

It is PointedEars, thanks.


I know.
I was mocking you.
once again more adding noise to this group than VK on most days.

Why, it does make sense. If there was a question, then this
was the correct answer :)
Maybe the OP should learn how to ask (the right) questions ...


For someone who repeatedly complains about netiquette, you make more
off-topic posts than anyone else in this newsgroup. For example, your
response in this thread. It added no value to anyone. If you want to be
snarky, take it to email where it's more appropriate. Or, don't do anything,
which would be the most appropriate response.

Perhaps a short lesson would be helpful to you:

1. Repeat to yourself: You are not _required_ to respond to anyone, and it
is not your job to teach everyone how to use the internet.

2. If someone doesn't phrase something to your liking, or doesn't include
proper punctuation, or doesn't express themselves in the best way, you may
wish to point out how they could have better phrased their post, then answer
and provide them help with the information they are looking for. Or, ignore
them completely.

3. Your posts which contain no real substance other than to correct the
style, language, punctuation, etc of the poster just add noise to this
newsgroup. If you're really interested in netiquette and the medium being
used most efficiently, you wouldn't make such posts.

If you used the effort and time that you put into correcting people on this
group into something more productive, you could certainly build up resources
which would benefit many others. That would be cool.

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Dec 31 '05 #7

P: n/a
Matt Kruse wrote:
Thomas 'PointedEars' Lahn wrote:
once again more adding noise to this group than VK on most days.

Why, it does make sense. If there was a question, then this
was the correct answer :)
Maybe the OP should learn how to ask (the right) questions ...


[blah]


I can live with that assessment from someone who
thinks of this newsgroup as being a support forum.

<URL:http://jibbering.com/faq/#FAQ2_4>
Score adjusted

PointedEars
Dec 31 '05 #8

P: n/a
Thomas 'PointedEars' Lahn wrote:
I can live with that assessment from someone who
thinks of this newsgroup as being a support forum.


I'm fully aware of what newsgroups are, having used them for well over a
decade.

But, perhaps you should use a dictionary to look up the more general
definition of the english word "forum":

1. A public meeting place for open discussion
2. A medium of open discussion or voicing of ideas, such as a newspaper or a
radio or television program
3. A public meeting or presentation involving a discussion usually among
experts and often including audience participation

No more responses to your semantic BS.

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Dec 31 '05 #9

P: n/a
Matt Kruse wrote:
Thomas 'PointedEars' Lahn wrote:
I can live with that assessment from someone who
thinks of this newsgroup as being a support forum.
I'm fully aware of what newsgroups are, having used them for well over a
decade.

But, perhaps you should use a dictionary to look up the more general
definition of the english word "forum":

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [...]
No more responses to your semantic BS.


If you do not want to talk semantics, that is fine with me. Then just do
not do it.

I also could have said:

I can live with that assessment, particularly that of being too much
off-topic at times, from someone who did not post more than five articles
per day (three at the average) during the last two months, and when he
posts, he is often but keeping those off-topic discussions alive by posting
his wild assumptions that have to be corrected.

There is a proverb in my native language that applies here:

Those who do nothing can do nothing wrong.

(O: Wer nichts macht, kann auch nichts falsch machen.)
Followup-To poster

PointedEars
Dec 31 '05 #10

P: n/a
Thomas 'PointedEars' Lahn said the following on 12/31/2005 9:45 AM:

[follow-ups set back to comp.lang.javascript]
Matt Kruse wrote:

Thomas 'PointedEars' Lahn wrote:
I can live with that assessment from someone who
thinks of this newsgroup as being a support forum.I'm fully aware of what newsgroups are, having used them for well over a
decade.
But, perhaps you should use a dictionary to look up the more general
definition of the english word "forum":

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[...]
No more responses to your semantic BS.

If you do not want to talk semantics, that is fine with me. Then just do
not do it.


The only problem with arguing semantics with you about the English
language is that you do not even understand the language itself so it is
impossible for you to argue what you do not understand.
There is a proverb in my native language that applies here:

Those who do nothing can do nothing wrong.


"It is better to let the world think you a fool than open your mouth and
remove all doubts."

With regards to you and English semantics, you keep opening your mouth
Thomas.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 1 '06 #11

This discussion thread is closed

Replies have been disabled for this discussion.