basic modal dialog hiding problem
- by senzacionale
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?