2012-12-05 133 views
0

如何在用戶點擊時刪除輸入類型 - 值文本。 如何打印密碼,而不是....... 我必須使用java腳本嗎? 是否有任何方式爲PHP刪除點?刪除文本值onclick?

這裏是我的代碼

<html> 
    <form action="testing.php" method="POST"> 
      <p>SIGN UP</p> 
      <input type="text" name="name" value="Enter Name" /> 
      <input type="password" name="password" value="Enter Password"/> 
      <input type="submit" name="submit"/> 
    </form> 
</html> 
+1

如果需要 –

+0

等待我得到了它,你可以使用佔位符..!多謝! –

+0

ohh thats gr8 buddy –

回答

1

使用佔位符代替:

<input name="Name" placeholder="Enter Name" /> 
+1

我懂了!多謝! –