![]() |
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); }); }); }); }); |
you improperly nested your functions and had an extra });
Code:
$(document).ready(function () { |
Hi, DanInMa--
Thanks for the reply. Unfortunately, the new code just fades out and then fades in divB. If possible, I would like it to do both as separate actions triggered by clicks, as described above. |
Code:
$('#divA').toggle(function () {Quote:
|
Thanks!
Thanks, AndrewGSW--That did the trick!!!!!!! Is that cross-browser?
|
Quote:
|
thanks again
Great. Thanks again!
|
| All times are GMT +1. The time now is 02:29 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.