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