如何在一个类中遍历div [英] how to loop through the div in a class

查看:84
本文介绍了如何在一个类中遍历div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个类名"test".我那里有很多div.我想使用jquery循环遍历div并获取可见的div列表.

i have a class name "test". i have load lots of div there. i want to use jquery to loop through the div and get the list of the div which are visible.

Does any one know how to accomplish this?

推荐答案

<script>


(document).ready(function(){
(document).ready(function () {


( ' .test').each(function(){ 如果(
('.test').each(function () { if (


这篇关于如何在一个类中遍历div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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