Friday, April 26, 2013

Disable Close Button in JQuery UI Modal Box

Script

$("#myDialogID").dialog({ closeOnEscape: false, beforeclose: function (event, ui) { return false; }, dialogClass: "noclose" });


This CSS is to be added newly. In jqueryui.css.


.noclose .ui-dialog-titlebar-close
{
    display:none;
}


No comments:

Post a Comment