2015-07-10 29 views
-4

從數據庫中顯示值的文本框。當我單擊清除按鈕時,值將被重置。但我無法做到這一點。請向我提供幫助。在文本框中重置數據庫中的值。 代碼:如何重置文本框中的值從數據庫和值從數據庫中獲取?

<a id="button1" href="http://www.cmatm.net/sample/sheet.php?id=<?php echo $id; ?>" type="button" style="margin:0;padding:0;" name="button1id" class="btn btn-success" onclick="window.location.href='sheet.php'">Edit</a> 

清除

+0

點擊之後,你想在文本框清晰的價值?在數據庫上?兩者? – tektiv

+0

我想重置文本框 –

回答

0

希望我理解這個權利。

要清除你需要做到這一點這樣一種形式:

<button form="yourform" type="reset">reset</button> 
+0

我會嘗試 –