I tried this to...no luck with the binding on the close button yet...

$("#button-sales").click(function(event) {

        $("#modalContentInstSales").load("includes/institutional-
sales.html");

        $('#modalContentInstSales').modal({
                onClose: modalClose,
                onOpen: modalOpen,
                containerCss: {
                        height: 420,
                        width: 342
                }
        });

        $('#modalContentInstSales').modal(data, {onShow:  function (dialog) {
                $(".simplemodal-close", dialog.data).click(function (e) {
                        e.preventDefault();
                        $.modal.close();
                });
        }});

});


Reply via email to