bootstrap.js手风琴有效索引? [英] bootstrap.js Accordion Active Index?

查看:94
本文介绍了bootstrap.js手风琴有效索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试检索活动索引,以便可以使用上一个/下一个按钮,并且还对手风琴的每个阶段中的表单值进行错误检查.

I am attempting to retrieve the active index so that I can use previous / next buttons, and also error check the form values in each stage of the accordion.

有没有办法获取手风琴的有效索引?

Is there a way to get the active index of the accordion?

推荐答案

var index = $('#accordion .in').parent().index();

这篇关于bootstrap.js手风琴有效索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆