parents
来源:互联网 发布:淘宝童装女孩模特 编辑:程序博客网 时间:2024/06/08 01:31
<body>
<form action="" class ="form">
<input class="time" type="text" id="search_zz" name="date">
</form>
<form action="" class ="form">
<input class="time" type="text" id="search_zz" name="date">
</form>
<form action="" class ="form">
<input class="time" type="text" id="search_zz" name="date">
</form>
</body>
<script>
$(".time").click(function(){
console.log($(this).parents("form").index());
});
<form action="" class ="form">
<input class="time" type="text" id="search_zz" name="date">
</form>
<form action="" class ="form">
<input class="time" type="text" id="search_zz" name="date">
</form>
<form action="" class ="form">
<input class="time" type="text" id="search_zz" name="date">
</form>
</body>
<script>
$(".time").click(function(){
console.log($(this).parents("form").index());
});
</script>
当三个子集没有在一个父层,如何取index
2 undefinded的非是真
0 0
- parents
- Being parents
- parents()用法
- jquery的parents()和parents的比较
- To My Parents
- Guidelines for Parents
- jquery parents closest
- Love to My Parents
- JQUERY .closest() .parents()区别
- jquery 找到顶级Parents
- .closest(selector)和.parents()
- jQuery-parent()与parents()
- Greatest Parents Ligh OJ1128
- Goal:Call Parents More Often
- 关于JSON parents及parent
- Jquery的parent和parents
- jquery parent() parents() closest()区别
- jQuery中parents()的使用说明
- Eclipse安装JD-Eclipse反编译插件
- iOS定位服务CoreLocation
- 赵广玉_GeoQ位置智能服务专家
- Mock方法介绍
- php实现注册登录的完整程序(使用mysql数据库)
- parents
- Failed to scan JAR [jndi:/localhost/WEB-INF/lib/oracle-jdbc-9.2.0.8.jar]
- VS 2010 LNK1123解决方法
- swing Java甘特图控件FlexGantt免费下载地址
- 单例模式(Singleton)
- 一道关于C++ 的面试题目(继承、构造函数以及析构函数)
- Leap Motion架构
- 纪念userscripts.org
- FTP命令