vendredi 30 janvier 2015

Why is my fadeToggle looping on one certain class?


I am trying to create three clickable divs, one to open, and two to close a popup window. One of the "close" divs works like a charm, however the other loops the fadeToggle. The looping class is .exit (upper left corner, grey box). Please see JSFiddle; http://ift.tt/163TRtm



´$(".maincontainer, .opaquebg").hide();
$("#orange, .exit, .opaquebg").click(function(){
$(".maincontainer, .opaquebg").fadeToggle(500);
});
});´


What have I done wrong?





Aucun commentaire:

Enregistrer un commentaire