<script> $(document).click(function(e) { var $target = $(e.target); if ($target.hasClass('menu-item-search') || $target.hasClass('glyphicon-remove')) { $('.form-container').fadeIn(150); } else if(!$target.parents("div").hasClass('form-container')) { $('.form-container').fadeOut(150) } }); </script> - Forbid scrolling from what, in the block with the class "form-container"? - ArtResh
- And for sure .. In html, body, which will be behind the opened .form-container - Serovpochta
|