簡體   English   中英

DHTMLXslider更改值時如何提交表單(沒有提交按鈕)?

[英]how to submit the form (without submit button) when DHTMLXslider change value?

我在窗體中使用DHTMLXslider,並且每當滑塊值更改時,我都希望窗體自動將滑塊值提交給php文件。 我嘗試使用onchange和onclick事件,但是它不起作用。 這是我的代碼。 有什么解決辦法嗎? 請幫忙。 謝謝。

<form method="POST" target="content" action="here.php" id="myform">
<input class="dhtmlxSlider" skin="ball" min="10" max="20" step="1" type="text" name="slider2" id="slider" style="width:200px" value="20" onclick="this.form.submit()"/>  
<br>

</form>

我不清楚你的問題。 檢查您的應用程序是否可以 onChange=formname.submit();

嘗試使用

onmouseup="this.form.submit();"

暫無
暫無

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

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