javascript - jQuery plugin SimpleModal body onclick close not working -


I have a problem closing the SimpleModel jQuery plugin when I click on. Works for shutting down:

  $ ('a.modalCloseImg'). Hide ();   

Here is my code to launch the modelbox. Note that the # login-link is the link that opens the box and # login-forms are hidden model boxes.

  // Launch Modal Box $ ("# Login-Link"). (Function () {$ ("# login-form"). Modal ();}); I have tried to add   

I

  $ ("# login-form"). Modal (overlayclass: true);   

But this does not work (FII parameter that is seen as a simple model box.

Try to launch a model box, an additional parameter like:

  // launch modal box $ (" # login-link "). Modal ({OverlayClose: true})}};   

You can add additional {} Forgot.

Comments