dimanche 17 mai 2015

Hide Div element by clicking elsewhere page

that way I can hide an element by clicking anywhere else except his page, I use the code below for all toggles that I use on my site.

// TOGGLE UNIVERSAL
function toggle(divId, switchImgTag) {
    var ele = $("#" + divId);
    $("#" + divId).slideToggle(0);
};

thankful since already!




Aucun commentaire:

Enregistrer un commentaire