元素问题 [英] element question

查看:46
本文介绍了元素问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是javascript的新手,但它已经出现了。我有

a形式,上面列有4个单选按钮 -

option1

option2

option3

其他(请注明)

然后是25个charachter文本框来输入你的信息。


我想做的是如果选择了选项1,2,3单选按钮和

然后你在文本框中单击以输入你自己的自定义选项然后

单选按钮将变为第4单选按钮指定

''其他''。

在4个选项中只有一个可以选择4个。


希望这是有道理的。


mdd

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

推荐答案

mdonahoe写道:
mdonahoe wrote:
我是javascript的新手,但它正在出现。我有一个表格,上面写着4个单选按钮 -
option1
option2
option3
其他(请注明)
然后一个25 charachter用于输入输入的文本框。

我想要做的是如果选择了option1,2,3单选按钮,然后单击文本框以输入您自己的自定义选项然后单选按钮将变为指定
''other''的第4个单选按钮。
在4个选项中只有一个可以选择4个。
<希望这很有意义。
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.




确实如此。

PointedEars



It does.
PointedEars


托马斯''PointedEars''Lahn写道:
Thomas ''PointedEars'' Lahn wrote:
我是javascript的新手,但它已经出现了。我已经列出了一个表格,上面写着4个单选按钮 -
选项1
选项2
选项3
其他(请具体说明)
然后一个25 charachter用于输入输入的文本框。

我想要做的是如果选择了option1,2,3单选按钮,然后单击文本框以输入您自己的自定义选项然后单选按钮将变为指定
''other''的第4个单选按钮。
在4个选项中只有一个可以选择4个。
<希望这是有道理的。
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,再一次为这个群体增添了噪音在大多数

天内比VK更多。


到OP:


< input type =" text" ; name =" other"

onFocus =" this.form.radiobuttongroupname [3] .checked = true">


那就是一个完成你想要的简短方法。


-

Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com


Matt Kruse写道:
Matt Kruse wrote:
Thomas ''PointedEars''Lahn写道:
Thomas ''PointedEars'' Lahn wrote:
我是javascript的新手,但它已经出现了。我已经列出了一个表格,上面写着4个单选按钮 -
选项1
选项2
选项3
其他(请具体说明)
然后一个25 charachter用于输入输入的文本框。

我想要做的是如果选择了option1,2,3单选按钮,然后单击文本框以输入您自己的自定义选项然后单选按钮将变为指定
''other''的第4个单选按钮。
在4个选项中只有一个可以选择4个。
<希望这有意义。
确实如此。
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,



Pointy Ears,




这是PointedEars,谢谢。

在大多数日子里再次为这个群体增加噪音而不是VK。



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




为什么,它确实有意义。如果有问题,那么这个

就是正确的答案:)


也许OP应该学习如何提问(右)问题......

HTH& HAND


PointedEars



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


这篇关于元素问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆