簡體   English   中英

從計算器發布 Jquery 輸入值並傳遞到鏈接參數

[英]post Jquery input values from calculator and pass into link parameters

我有一個 jQuery 計算器,它是使用名為 Appizy 的轉換工具構建的。 它需要一個excel的計算,轉換成jQuery和html。

這是網站: https://staging-homecarepulse.kinsta.cloud/pricing-calc/

我想要做的是獲取顯示的輸入值並將它們 append 到一個鏈接例如我想用這些參數創建一個動態鏈接

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

其中數字是,計算器的輸入值(不是結果)應該顯示。

非常感謝任何正確方向的建議。 謝謝!!

我能夠通過為我的輸入添加一個值來解決這個問題

<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"

這將打開一個新的 window,其中包含用戶在輸入字段中設置的參數

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM