带下拉列表和文本框的动态表 [英] Dynamic table with dropdown and textboxes

查看:99
本文介绍了带下拉列表和文本框的动态表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我只使用HTML和JS。

当我点击Button(比如Add)时,会在下拉列表中添加一个新行和文本框。我想知道如何访问在文本框和下拉列表中输入的数据

请帮助我,因为我是初学者

Hi
I am using HTML and JS only.
When i click on Button(say Add) a new row will be added in to the table with dropdown''s and textboxes.I want to know how to access the data entered in the textboxes and dropdowns
Please help me out as i am a beginner

推荐答案

嗨...


请发布您已有的代码。基本上你可以用以下方法检索这些值:

hi ...

please post the code you already have. basicly you may retrieve the values with:

展开 | 选择 | Wrap | 行号



嗨...


请发布您已有的代码。基本上你可以用以下方法检索这些值:

hi ...

please post the code you already have. basicly you may retrieve the values with:

展开 | 选择 | Wrap | 行号


何时保存?关于按钮单击或提交的特定操作?你刚刚发布了代码来附加一行,但只创建了节点...稍后用户输入某些内容然后你可以保存数据。你需要将它保存在数据库中吗?请详细解释一下要求。


亲切的问候
when do you want to save them? on a specific action like a button-click or submit? you just posted the code to append a line but that only creates the nodes ... later on the user types in something and then you may save the data. do you need to save it in a database? explain the requirement a bit more detailed please.

kind regards


这篇关于带下拉列表和文本框的动态表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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