View Single Post
Old 11-27-2011, 05:11 PM   PM User | #3
Paramasivan
New Coder

 
Join Date: May 2011
Posts: 20
Thanks: 5
Thanked 1 Time in 1 Post
Paramasivan is an unknown quantity at this point
I have done with the following code:

Code:
$('#plusexp').click(function() {
    var $cols3 = $('.cols3');
    if ($cols3.is(':visible')){
        $('.cols4').show();
    };
    $cols3.show();
});
The following code also works :

Code:
$('#plusexp').click(function() {
    if ($('.cols3').is(':hidden')) {
        $('.cols3').show();
    } else {
        if ($('.cols4').is(':hidden')) {
            $('.cols4').show();
        }
    }
});
Paramasivan is offline   Reply With Quote