使用选项值填充文本框值 [英] Populate textbox value with option value

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

问题描述



我是网络编程的新手,尝试完成任务,我有一个带有3个下拉框和一个文本字段(只读)的表单。

我现在的问题是,在选择上面3个下拉框后,其值应填入文本框值,Ex


下拉值01 =放置(1MUM)

下拉值02 =年(10)

下拉值03 =课程(MCA)


文本值=地点+年份+课程< br $>
(1MUM10MCA)


这里是表格代码(任何提示我都会非常感激)

表格仍在设计中所以请忍受。

Hi
I am very new to web programming, trying to achieve a task, I have a form with 3 dropdown box and a text field(which is readonly).
My problem now is, after selecting the above 3 dropdown boxes, its values should be populated at the text box value, Ex

dropdown value 01 = Place (1MUM)
dropdown value 02 = Year (10)
dropdown value 03 = Course (MCA)

text value = Place+Year+Course
(1MUM10MCA)

here is the form code(any hint i will be very thankful)
The form is still in design, so please bear.

展开 | 选择 | 换行 | 行号

推荐答案



在选择中使用onchange事件。


Ex:HTML
展开 | 选择 | Wrap | 行号


你好先生,


我试过这个逻辑,但我仍然没有能够从3个不同的下拉值中添加(concat)3个不同的值,并将它们显示在只读文本框或标签中。


非常感谢你的时间,请你帮我解决上述问题。
hello sir,

I have tried this logic, but still i am not able to add(concat) 3 different values from the 3 different dropdown values, and display them in a readonly text box or label.

thank you every much for your time, pls can you try and help me in the above problem.


这很简单... 。


在第三个选择框中,使用onchange事件。调用方法。

在该方法中,首先检查所有三个选择对象的值。然后将它们放在文本框中。


例如:
It is simple yaar....

In the third Select box, use onchange event. Call a method.
In that method first check the values for all the three select object. Then put it them in the text box.

Ex:
展开 | 选择 | Wrap | 行号


这篇关于使用选项值填充文本框值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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