从表单动态添加数字。 [英] Dynamically adding numbers from a form.

查看:58
本文介绍了从表单动态添加数字。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好....免责声明......我是新手:)


我试图添加2个字段并获得总额


字段1将是一个列表字段。显示4个选项

每个选项都有一个数字关联(即选择1 = 40,选择2 = 80等)


字段2将是另一个列表字段...显示4个选项

如果选择1 = 40,如果选择2 = 80,等等)


汇总Calc会将Field 1和Field 2加在一起。我宁愿这样做而不改变页面,所以我猜javascript将是最好的选择....


任何帮助将不胜感激...谢谢!


Greg

Hello....disclaimer...I am a newbie :)

I am attempting to add 2 fields and obtain a total sum

Field 1 would be a list field. Showing 4 choices
Each choice has a number association (ie choice 1 =40, choice 2 = 80, etc)

Field 2 would be another list field...showing 4 choices
If choice 1 = 40, if choice 2 = 80 ,etc)

Summary Calc would add Field 1 and Field 2 together. I would prefer to do this without changing pages so I am guessing javascript would be the best choice....

Any help would be appreciated...thanks!

Greg

推荐答案

欢迎来到TSDN!


给出选择选项值(以防万一)你没有,例如
Welcome to TSDN!

Give the select options values (just in case you haven''t), e.g.
展开 | 选择 | Wrap | 行号


您好,感谢您的帮助!


我的想法是,只要列表被更改,表单总数就会动态更新。目标是总计费用金额,以便该人知道他们的费用,金额可以发送到PayPal payflow链接进行信用卡支付。


这是一般的想法:

Hello and THANKS for helping!

My idea was that the form total would dynamically update anytime either list was altered. The goal was to general the totalfee amount so the person would know their fees and the amount could be sent to paypal payflow link for credit card payment.

Here is the general idea:

展开 | 选择 | Wrap | 行号


定义一个函数,例如
Define a function, e.g.
展开 | 选择 | Wrap | 行号


这篇关于从表单动态添加数字。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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