Toggling a class on and off with a click event.
$(".request-info, .close, .form-bg").click(function(){ $("#form, .form-bg, body").toggleClass("active"); return false; });