View Single Post
Old 12-30-2012, 05:40 PM   PM User | #1
eabigelow
New Coder

 
Join Date: Aug 2011
Posts: 33
Thanks: 1
Thanked 0 Times in 0 Posts
eabigelow is an unknown quantity at this point
This MUST be an easy fix...?

Hi--

I am using the following js to click on divA to fade out divB, and then click on divA again to fade in divB. It works the first time, but not the rest.

My apologies for the terrible script (I know nothing about js), but could someone help me fix this? MANY THANKS FOR ANY HELP!

$(document).ready(function(){
$('#divA').click(function() {
$('#divB').fadeOut(500, function() {
$('#divA').click(function() {
$('#divB').fadeIn(500);
});
});
}); });
eabigelow is offline   Reply With Quote