我有这个INPUT,每当我们点击它时它就会清除.
问题:我只想清除value = exemplo@exemplo.com
<script type="text/javascript">
function clearThis(target) {
target.value= "";
}
</script>
<input type="text" name="email" value="exemplo@exemplo.com" size="30" onfocus="clearThis(this)">
Run Code Online (Sandbox Code Playgroud)
有人可以帮我这么做吗?我不知道如何比较,我已经尝试但没有成功.