源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

jquery中:input和input的区别分析

  • 时间:2020-11-29 00:04 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:jquery中:input和input的区别分析
[u]复制代码[/u] 代码如下:
<script type="text/javascript"> $(function(){ $(":input").focus(function(){ $(this).addClass("focus"); }).blur(function(){ $(this).removeClass("focus"); }); })//这个效果第三个textarea也会添加样式 </script> <form action="" method="post" id="regForm"> <fieldset> <legend>个人基本信息</legend> <div> <label for="username">名称:</label> <input id="username" type="text" /> </div> <div> <label for="pass">密码:</label> <input id="pass" type="password" /> </div> <div> <label for="msg">详细信息:</label> <textarea id="msg" rows="2" cols="20"></textarea> </div> </fieldset> </form>
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部