如何在jquery中逐个淡化? [英] How to fadein one by one in jquery?
问题描述
你好每个身体
i在c#中生成一些div循环(我不知道div的数量,因为我从db获取)并且我为它们添加动态名称,如show1,show2,show3 .. show n。
我为他们所有人设置了这个脚本=>显示:无;
我不知道怎么理解我有多少'show x'! =>用于结束循环条件
i希望在jquery中一个接一个地淡出它们。
请帮帮我。 />
我尝试过:
$(文件).ready(功能(){
$('#show1')。fadeIn();
});
hello every body
i generate some div in loop in c# (i dont know the number of div because i fetch from db) and i put dynamic name for them like show1,show2,show3 ... show n.
and i put this script for all of them => display:none;
and i dont know how to understand how many 'show x' i have! =>for end loop condition
i want to fadeIn them one by one not at all in jquery.
please help me.
What I have tried:
$(document).ready(function () {
$('#show1').fadeIn();
});
推荐答案
(document).ready(function(){
(document).ready(function () {
('#show1')。fadeIn();
});
('#show1').fadeIn();
});
这篇关于如何在jquery中逐个淡化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!