输入框焦点

onfocus="if (value =='输入账号'){value =''}" onblur="if (value ==''){value='输入账号'}" value="输入账号"

<input type="password" name="textfield2" id="userpwd" class="txt_input" onfocus="if (value ==&#39;******&#39;){value =&#39;&#39;}" onblur="if (value ==&#39;&#39;){value=&#39;******&#39;}" value="******">

posted @ 2019-01-28 10:01  JerrySky  阅读(167)  评论(0编辑  收藏  举报