自动在表单中添加预定义的输入字段,并动态地相同 [英] auto add pre defined input fields in a form and total the same dynamically

查看:55
本文介绍了自动在表单中添加预定义的输入字段,并动态地相同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨论坛:)

i有一个表单,其中我有四个输入字段用于输入的部分和4个字段用于金额

我想要的是第一个piece-t1应该是可见的,休息三不应该出现在表单上,​​除非被要求。

任何人都可以建议我这样做

i遇到了很多我们可以添加输入字段的帮助区域但在我的情况下我只预定义了3个字段

代码如下

展开 | 选择 | Wrap | 行号

解决方案

第一个o全部,欢迎来到Bytes!


当你说除非被要求之外,你对''要求'完全是什么意思?是什么触发了那些输入字段的显示?它是一个按钮还是通过其他方式?


您可以先将它们隐藏起来,然后在需要时显示它们,或者在需要时动态创建它们。最后一件事:你是否想隐藏包含输入字段的表格行?


hi

感谢提示回复帮助:)) />
以及我的意思是我想让三个字段包括输入框隐藏,除非我点击按钮一个一个地添加



件-t1和金额-t1一直可见

当我点击按钮添加新的

件-t2和金额-t2应该变得可见(以及他们的输入字段)

接下来当我按下相同时应发生如上t3和最后t4

im使用javascript作为前端和msaccess作为数据库独立机器

谢谢

anand :)

微笑总是


最初,设置所有样式显示三行的属性为无。给行添加id,然后调用一个函数onclick(按钮)获取行并将style.display设置为'''':

展开 | 选择 | Wrap | 行号

hi forum:)
i have a form in which i have four input fields for pieces to be entered and 4 fields for amount
what i want is that the first pieces-t1 should be visible and rest three should not show up on the form unless asked for.
can anyone suggest me a way to do this
i have come across a lot of help areas where we can add input fields but in my case i have only predefined 3 fields
the code is below

Expand|Select|Wrap|Line Numbers

解决方案

First of all, welcome to Bytes!

When you say "unless asked for", what do you mean exactly by ''asking for''? What triggers the display of those input fields? Is it a button or via some other means?

You can either have them hidden initially and then show them when required, or create them dynamically when required. One last thing: would you want to hide the table rows too which contain the input fields?


hi
thanks for the prompt reply for help:)
well what i mean is that i want to make the three fields including the input boxes hidden unless i click on a button to add one by one
that is
pieces-t1 and amount-t1 is visible all the time
when i click on a button to add new
pieces-t2 and amount-t2 should becomes visible(along with their input fields)
next when i press same should happen as above for t3 and last for t4
i m using javascript for front end and msaccess as the database for a standalone machine
thanks
anand:)
smile always


Initially, set all the style display properties of the three rows to "none". Give ids to the rows, then call a function onclick (of the button) which gets the row and sets the style.display to '''':

Expand|Select|Wrap|Line Numbers


这篇关于自动在表单中添加预定义的输入字段,并动态地相同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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