How to close pretty photo modal window
  • I have used prettyphoto to load a page from my application and on the click of the button in the loaded page. I want to close prettyphoto modal window. But it's not happening. Please help me out.

    On the click of button. I have called this "$.prettyPhoto().close();"
    Actually I have associated an anchor tag to prettyphoto. In the onload I have like this $("a[rel^='prettyPhoto']").prettyPhoto();. so on the click of anchor tag. pretty photo is opened.
    On the click of button. I also tried like this "$("a[rel^='prettyPhoto']").prettyPhoto().close();".
    But still no "Result". It's not opening.
    Reply ASAP.
  • $.prettyPhoto.close();

    or

    $("a[rel^='prettyPhoto']").click();

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter