WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: ThickBox] Closing a Modal Window? (1 post)

  1. sparkweb
    Member
    Posted 4 years ago #

    I've got a question and I can't find the answer anywhere on the interwebs. Thickbox is working great for my popups. I'm using modal =true because I want to create my own close button. I also want to be able to close the modal window by click on the overlay (the gray background div). The close button works fine, but I can't get the overlay to accept any clicks. Here's my code:

    $(".closebiopopup, #TB_overlay").bind("click", function(e) {
    tb_remove();
    return false;
    });

    Any ideas about how to bind an event to the overlay?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags