Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-29-2012, 01:12 PM   PM User | #1
367
New Coder

 
Join Date: Nov 2011
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
367 is an unknown quantity at this point
if no carousel shown open certain carousel

Hi

I have window that contains 4 carousels with some text. At start first 3 are hidden and last one (#conf) is shown. When i click on title (h3) of carousel it does .fadeToggle for it and .fadeOut for other 3 carousels.
Now, i need last carousel to be opened when no other carousel is shown.
Here is code i have:
Code:
$(document).ready(function() {
$('div.ci> div').hide();
$('div.ci> div#conf').show();
$('div.ci> h3').click(function() {
$(this).next('div').fadeToggle(500)
.siblings('div:visible').fadeOut(0)
});
});
Any help would be great
367 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:39 PM.


Advertisement
Log in to turn off these ads.