jquery 表单input-placeholder事件

<input type="text" value="" placeholder="请输入您的姓名" onblur="this.placeholder=(this.placeholder=='')?'请输入您的姓名':this.placeholder" onfocus="this.placeholder=(this.placeholder=='请输入您的姓名')?'':this.placeholder" style="text-align: center; width: 95%; padding: 8px 5px; font-size: 14px;  float: right;">

posted @ 2018-03-30 15:44  安心牧羊人  阅读(612)  评论(0编辑  收藏  举报