当我们双击输入字段时,我不希望输入字段显示已经输入的数据.我该怎么办呢?


i don't want the input field to show already entered data when we double click in the input field..what should i do?

<html>
<head>
<title> Web Page </title>
</head>
<body>
<form action="" method="POST">
<input type="text" name="name" />
<input type="submit" value="Submit" />
</form>
</body>
</html>

实际上是我想要的,一旦您填写名称并单击提交,当您再次打开页面输入数据时,如果您双击输入字段,那么它会显示以前输入的数据。我不想那样我该怎么办

你需要做更多的调查。你可能不知道如何正确地表达它,但正如@kannan所说,这就像把autocomplete="off"放在你的<input/>字段的末尾一样简单。