samedi 27 juin 2015

jQuery - link hides div

I have this simple script

$(".showHide").click(function (e) {
    e.stopPropagation();
    $(".showHide").children('.showHide').toggle();
});

$(".modal-inside").click(function (e) {
    e.stopPropagation();
});

$(document).bind('keydown', function(e) { 
        if (e.which == 27) {
            $(".showHide").children('.showHide').hide();
        }
    });

I cant find out how I can make my link with class close to work. I want it to show .modal div with it.

working script is here http://ift.tt/1Jqienj

Aucun commentaire:

Enregistrer un commentaire