需要帮助简单的价格x数量计算 [英] Need help with simple price x quantity calculation

查看:53
本文介绍了需要帮助简单的价格x数量计算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常简单的价格时间数量计算。


输入是STWCORQuant:

展开 | 选择 | Wrap | 行号

解决方案

你应该使用document.getElementById()而不是document.all(这是IE的语法,许多浏览器都不理解)。


将onChange重命名为onchange。


qnty的值是多少?


您也可以将您的函数称为STWCORPrice(this.value)(调整功能代码......),所以你不需要取来自文档树的值。


问候



你应该使用document.getElementById()而不是document.all(这是IE的语法,许多浏览器都不理解)。


将onChange重命名为onchange。


what是值的价值?


您也可以将您的函数称为STWCORPrice(this.value)(调整函数代码...),这样您就不需要获取来自文档树的值。


关于



我根据你的建议更改了第5行代码:

展开 | 选择 | Wra p | 行号


< blockquote>你没有。在你的情况下,你必须将其称为

展开 | 选择 | Wrap | 行号


I have a very simple price times quantity calculation.

The input is STWCORQuant:

Expand|Select|Wrap|Line Numbers

解决方案

you should use document.getElementById() instead of document.all (that''s IE syntax and not understood by many browsers).

rename onChange to onchange.

what is the value of qnty?

you could also call your function as STWCORPrice(this.value) (adjust function code...), so you don''t need to fetch the value from the document tree.

regards


you should use document.getElementById() instead of document.all (that''s IE syntax and not understood by many browsers).

rename onChange to onchange.

what is the value of qnty?

you could also call your function as STWCORPrice(this.value) (adjust function code...), so you don''t need to fetch the value from the document tree.

regards

I changed line five of the code per your suggestion:

Expand|Select|Wrap|Line Numbers


you don''t have. in your case you have to call it as

Expand|Select|Wrap|Line Numbers


这篇关于需要帮助简单的价格x数量计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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