basic modal dialog hiding problem

Posted by senzacionale on Stack Overflow See other posts from Stack Overflow or by senzacionale
Published on 2010-06-01T14:27:58Z Indexed on 2010/06/01 14:33 UTC
Read the original article Hit count: 171

Filed under:

I am using basic modal dialog: http://www.ericmmartin.com/projects/simplemodal-demos/

$(document).ready(function() {
    $("#bodyTxt .basic").click(function() {
        var text = $(this).attr("title");
        $("#basicModalContent").html(text).modal();

        return false;
    });
});

but when i click on X code is now visible in page. How can after i close model dialog delete html code and add #basicModalContent display to none?

© Stack Overflow or respective owner

Related posts about jQuery