如何通过从文本框中获取值并将其显示在列表框中来显示该值 [英] how to display the value by fetching the value from the textbox and display it in a listbox
本文介绍了如何通过从文本框中获取值并将其显示在列表框中来显示该值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
目前我没有任何代码,我没有办法做到这一点,但我想尽快学习,所以请任何人都可以帮助我。我很高兴,如果有的话可以做到这一点。
谢谢你
Currently i'm not having any code , i'm not getting the way to do this but i want to learn asap ,so please anybody can help me with this. I'll glad if any can do this .
Thank You
推荐答案
如果你想在 JavaScript中做到这一点,然后分析在浏览器上为ListBox
呈现的HTML
。
假设它是一个包含每个项目行的表。因此,您需要创建一个新行并将其追加到现有表中。这将创建一个新的ListBox
项目。
就是这样。
If you want to do it in JavaScript, then analyze theHTML
rendered on browser for theListBox
.
Suppose it is a table having rows for each item. So, you need to create one new row and append that to the existing table. That will create a newListBox
item.
That's it.
我用Google搜索了它:
I Googled it for you:
Quote:
使用jquery将文本框值添加到列表框
add textbox value to listbox using jquery
这篇关于如何通过从文本框中获取值并将其显示在列表框中来显示该值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文