hide jquery facebox modal manually -
I used my custom close button on my Facebox model to turn it off ... it's OK (ie) off Does, but it closes after I click the Close button to add to the bottom of the page ...
& lt; One onclick = "$. Facebox.close ();" Href = "javascript: void (0);" Class = "pass" & gt; & Lt; Img alt = "close popup" src = "picture / close" title = "closed" square = "closed_size" /> & Lt; / A & gt;
$ (document) .bind ('close.facebox', function) ($ {Document}. Unbind ('keydown.facebox') $ ('# aspnetForm'). Attachments ($ ('# facebox .content') .HTML ()) /// Additional line to make sure that the facebox There is no flashing effect on closing: The content is still there! $ ('#facebox content'). Children () .css ({'display': 'block'}); $ ('#foundboxes'). FeedThat (function () {$ ('#facebook content'). RemoveClass () AddClass ('content') Hide overlay () $ ('# facebox loading Here is my page,
$ (document) .ready (function ($) {}. $ .facebox.settings.opacity = 0.2; $ ('a [rel * = facebox]') .Facebox ();}); & Lt; Div id = "forgetPassword" style = "display: none" & gt; // content & lt; / Div & gt; onclick = "javascript: $ (document)
.trigger ('close .facebox ') " and it worked ..
Comments
Post a Comment