从计算器发布 Jquery 输入值并传递到链接参数

发布于 2025-01-11 03:05:12 字数 468 浏览 1 评论 0原文

我有一个 jQuery 计算器,是使用名为 Appizy 的转换工具构建的。它需要进行 Excel 计算并将其转换为 jQuery 和 html。

这是网站: https://staging-homecarepulse.kinsta.cloud/pricing-calc/

我想做的是抓取显示的输入值并将它们附加到链接中,例如我想使用这些参数创建一个动态链接

 ?demo_request_type=es&active_clients=[NUMBER]&active_caregivers=[NUMBER]

,其中数字是来自计算器的输入值(不是结果)应该 展示。

非常感谢任何正确方向的建议。 谢谢你!!

I have a jQuery calculator that I built using a conversion tool called Appizy. It takes a excel calculation and converts it into jQuery and html.

Here is the site: https://staging-homecarepulse.kinsta.cloud/pricing-calc/

What I am trying to do is grab the input values that are displayed and append them to a link for example i want to create a dynamic link with these parameters

 ?demo_request_type=es&active_clients=[NUMBER]&active_caregivers=[NUMBER]

where number is, the input values from the calculator (NOT RESULTS) should show.

Would much appreciate any suggestion in the right direction.
Thank you!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

只是偏爱你 2025-01-18 03:05:12

我能够通过向我的输入添加一个值来解决这个问题

<input type="text" id="qta_field1" value="${item.value}"/>

我想添加了这个我的按钮链接

onclick="this.href='http://www.google.com?demo_request_type=example&active_clients='+document.getElementById('qta_field1').value +'&active_caregivers='+document.getElementById('qta_field2').value"

这会打开一个新窗口,其中包含用户在输入字段中设置的参数

i was able to solve this by adding a value to my inputs

<input type="text" id="qta_field1" value="${item.value}"/>

I think added this my button link

onclick="this.href='http://www.google.com?demo_request_type=example&active_clients='+document.getElementById('qta_field1').value +'&active_caregivers='+document.getElementById('qta_field2').value"

this opens up a new window with the parameters set in the input field by the user

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文