Easyui-textbox得到焦点方法


得到焦点是我们在编写前台时经常使用到的,为了提高用户的体验度,话不多说直接上代码。

jsp页面:

<div class="box_xian">
    <span class="name">
       <input class="easyui-textbox" id="loginName" name="loginName" data-options="iconCls:'icon-man',width:262,iconWidth:38,prompt:'用户名'">
    </span>
</div>

js代码:

$('#loginName').textbox().next('span').find('input').focus();

这样我们就用easyui的textbox实现了得到焦点。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM