Line 11: | Line 11: | ||
$("div.modal").click( function(){ | $("div.modal").click( function(){ | ||
− | + | var cl = this.getAttribute('class').split(" ")[1] | |
+ | var modal = document.getElementById( cl + "Modal" ); | ||
+ | modal.style.display = "none"; | ||
}); | }); | ||
Revision as of 12:15, 17 October 2016