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.preventDefault();
        $('#test').slideToggle(56765867);
    });

    $(document).click(function (e) {
        if ($(e.target).closest('#test').length > 0 || $(e.target).closest('#toggle-menu').length > 0) return;
        $('#test').slideUp(76658);
    });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #click #div #close #open #day #jquery
ADD COMMENT
Topic
Name
6+8 =