登录框自动获取焦点

<script type="text/javascript">
 $().ready(function(){

     window.setTimeout(function(){
         $("#index_loginForm input[name='name']").focus(); 
     }, 0);


 });



</script>
发布了42 篇原创文章 · 获赞 24 · 访问量 8万+

猜你喜欢

转载自blog.csdn.net/zhang245754954/article/details/56680429
今日推荐