在网络表单的输入上添加变量
我尝试使用 jQuery,它按照我的指示添加了标题,但它没有将其添加到源代码中。
jQuery(document).ready(function($){
$('#ID_to_webform_input').attr('title', 'TEXT SHOWS UP AS TITLE')
});
我正在尝试获取与此页面中显示的内容类似的内容:计算订单表格总计。
它要求我将 onChange="CalculateTotal(this.form)"
添加到我想要计算的输入中,但以这种方式使用 jQuery 并不能完成这项工作。
I tried using jQuery, and it adds the title as I instruct, but it doesn't add it to the SOURCE CODE.
jQuery(document).ready(function($){
$('#ID_to_webform_input').attr('title', 'TEXT SHOWS UP AS TITLE')
});
I am trying to obtain something similar to what shown in this page: Calculating Order Form Totals.
It asks me to add onChange="CalculateTotal(this.form)"
to the inputs I want to calculate, but using jQuery in this manner is not doing the job.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Web 表单不会接受属性作为输入。尝试使用 .val()。
Attributes won't be accepted by the webform as input. Try using .val().