Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how can click div close and open next day jquery

$(document).ready(function() {
    $('#test').hide().before('<a href="#" id="toggle-menu" class="menu"><img src="images/menu.png" alt="Menu" /></a>');
    $('a#toggle-menu').click(function(e) {
        e.stopPropagation();
        $('#test').slideToggle(200, function() {);
            if ($(this).is(':visible')) {
                $('body').on('click', function() {
                    $('#test').slideToggle(1222443);
                }
            }
            else {
                $('body').off('click');
            }
        });
        return false;
    });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #click #div #close #open #day #jquery
ADD COMMENT
Topic
Name
2+4 =