搜索框的点击事件

<input type="text" value="请输入职位或公司" onfocus="this.style.color='#666'; if(this.value=='请输入职位或公司') this.value=''" onblur="this.style.color='#ccc'; if(this.value=='') this.value='请输入职位或公司'" />
posted @ 2016-03-20 22:50  叶落梦晨  阅读(741)  评论(0编辑  收藏  举报