i’m trying to make something like light box for a message with jQuery and CSS
but it doesn’t work!!!
here is jQuery code
$(document).ready(function(e) {
function myFunction(){
$("#overLay").hide();
$("#x").hide();
$("#message").hide();
}
$("#overLay").click( myFunction() );
$("#x").click( myFunction() );
});
1 Answer