简单的问题 [英] simple question
问题描述
你好
对不起我不知道javascript但我必须完成我的工作和
那里我有一些脚本
在我的页面上我有一个textarea表格和一个选择表格
当用户点击选择表格时我需要选择的文字
以我的textare形式apears
这就是所有
你能给我最短的方式吗?
谢谢你们所有人。
< textarea rows =" 4"名称= QUOT; S1" cols =" 48">< / textarea>
< select size =" 6"名称= QUOT; D1" ID = QUOT; FNAME" onchange =" ???">
< option> DELETE< / option>
< option> INSERT< / option>
< option> UPDATE< / option>
< / select>
10月16日凌晨4:53,AlBen< caspio ... @ hotmail.comwrote:
你好
对不起,我不知道javascript,但我必须完成我的工作和
那里我有一些脚本
应该是谁应该(并且可能会)抱歉是那个给b
的人分配了与JavaScript相关的工作给那些不知道的人。
JavaScript。
>
在我的页面上我有一个textarea表格和一个选择表格
显然你不喜欢也不了解HTML。那些是输入
元素,而不是表格。
当用户点击选择表格时我需要选择的文字
以我的textare形式出现
这就是所有
你能给我最短的方式吗?
谢谢大家。
< textarea rows =" 4"名称= QUOT; S1" cols =" 48">< / textarea>
< select size =" 6"名称= QUOT; D1" ID = QUOT; FNAME" onchange =" ???">
< option> DELETE< / option>
< option> INSERT< / option>
< option> UPDATE< / option>
< / select>
this.form.elements.S1.value = this.options [this.selectedIndex] .text;
< br>
AlBen写道:
在我的页面上我有一个textarea表单和一个选择表单
当用户点击选择表格我需要选择的文本
apears in my textare form
A(n HTML)表格*由*表格组成_controls_(不是表格),例如
`textarea''和'select''元素。
'全部
你能给我最简短的方法吗?
[...]
< form action =" ..." ...>
...
< textarea rows =" 4"名称= QUOT; S1" cols =" 48">< / textarea>
< select size =" 6" ...
onclick =" this.form.elements [''S1'']。value + = this.value;">
< option> ; DELETE< / option>
< option> INSERT< / option>
< option> UPDATE< / option>
< / select>
...
< / form>
RTFM。 RTFFAQ。 http://jibbering.com/faq/
PointedEars
-
Prototype.js是由不懂javascript的人写的
谁不懂javascript。不知道javascript的人不是设计使用javascript的系统的最佳建议来源。
- Richard Cornford,cljs,< f8 ** *****************@news.demon.co.uk>
10月16日上午5:24, Thomas''PointedEars''Lahn< PointedE ... @ web.de>
写道:
AlBen写道:
在我的页面上我有一个textarea表单和一个选择表单
当用户点击选择表单时我需要选择的文本
apears in my textare form
A(n HTML)表格*由* form _controls_(非表格)组成,例如
`textarea''和'select''元素是。
'是全部
你能给我最简短的方法吗?
[...]
< form action =" ..." ...>
...
< textarea rows =" 4"名称= QUOT; S1" cols =" 48">< / textarea>
< select size =" 6" ...
onclick =" this.form.elements [''S1'']。value + = this.value;">
更改事件更合适(并且可访问)。
Hello
sorry I don''t know about javascript but I have to finish my work and
there I have some scripts
on my page I have a textarea form and a select form
when a user click in the select form I need the text of the selection
apears in my textare form
that''s all
Could you give me the shortest way to do that?
Thank you to all of you.
<textarea rows="4" name="S1" cols="48"></textarea>
<select size="6" name="D1" id="fname" onchange="???">
<option>DELETE</option>
<option>INSERT</option>
<option>UPDATE</option>
</select>
解决方案On Oct 16, 4:53 am, AlBen <caspio...@hotmail.comwrote:Hello
sorry I don''t know about javascript but I have to finish my work and
there I have some scriptsThe person who should (and likely will) be sorry is the one who
assigned JavaScript-related work to someone who doesn''t know about
JavaScript.
>
on my page I have a textarea form and a select formApparently you don''t know about HTML either. Those are input
elements, not forms.
when a user click in the select form I need the text of the selection
apears in my textare form
that''s all
Could you give me the shortest way to do that?
Thank you to all of you.
<textarea rows="4" name="S1" cols="48"></textarea>
<select size="6" name="D1" id="fname" onchange="???">
<option>DELETE</option>
<option>INSERT</option>
<option>UPDATE</option>
</select>this.form.elements.S1.value = this.options[this.selectedIndex].text;
AlBen wrote:on my page I have a textarea form and a select form
when a user click in the select form I need the text of the selection
apears in my textare formA(n HTML) form *consists of* form _controls_ (not forms), which e.g.
`textarea'' and `select'' elements are.
that''s all
Could you give me the shortest way to do that?
[...]<form action="..." ...>
...
<textarea rows="4" name="S1" cols="48"></textarea>
<select size="6" ...
onclick="this.form.elements[''S1''].value += this.value;">
<option>DELETE</option>
<option>INSERT</option>
<option>UPDATE</option>
</select>
...
</form>
RTFM. RTFFAQ. http://jibbering.com/faq/
PointedEars
--
Prototype.js was written by people who don''t know javascript for people
who don''t know javascript. People who don''t know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
On Oct 16, 5:24 am, Thomas ''PointedEars'' Lahn <PointedE...@web.de>
wrote:AlBen wrote:on my page I have a textarea form and a select form
when a user click in the select form I need the text of the selection
apears in my textare form
A(n HTML) form *consists of* form _controls_ (not forms), which e.g.
`textarea'' and `select'' elements are.
that''s all
Could you give me the shortest way to do that?
[...]
<form action="..." ...>
...
<textarea rows="4" name="S1" cols="48"></textarea>
<select size="6" ...
onclick="this.form.elements[''S1''].value += this.value;">The change event would be more appropriate (and accessible.)
这篇关于简单的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!