Home >Web Front-end >JS Tutorial >How to clear the default value of input_form effects

How to clear the default value of input_form effects

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 19:13:231328browse


Then if I When I move the mouse away, the default value appears again. But after I input it, the default value does not appear. What should I do?


[Ctrl A Select all Note: If you need to introduce external Js, you need to refresh to execute ]


It looks like this There are still some problems. After I input, removing the mouse will not restore it to the original default value. But if I want to modify my input, it will not work. When I click the mouse, the input is cleared again

[Ctrl A Select all Note: If you need to introduce external Js, you need to refresh it to execute
]

And the moderator only needs to change Cheng:

[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute
]<script> function showSearch(obj,type){ if(type){ if(obj.value=="") obj.value="输入关键字进行搜索"; }else{ if(obj.value=="输入关键字进行搜索") obj.value=""; } } </script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn