Lightboxやモーダルウィンドウなどを消す時に設定。
$('body').click(function(e) { if ( !$.contains($('#modal')[0], e.target) ) { $('#modal').fadeOut(); } });
日々のひとりごと
Lightboxやモーダルウィンドウなどを消す時に設定。
$('body').click(function(e) { if ( !$.contains($('#modal')[0], e.target) ) { $('#modal').fadeOut(); } });