View Single Post
Old 12-30-2012, 07:38 PM   PM User | #2
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
you improperly nested your functions and had an extra });

Code:
$(document).ready(function () {
    $('#divA').click(function () {
        $('#divB').fadeOut(500);
    });
    $('#divA').click(function () {
        $('#divB').fadeIn(500);
    });
});
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is offline   Reply With Quote