I want to create a form using fancybox2. When needed the fancybox2 form will be displayed and can only be closed using the top right X button, escape key or with a submit,cancel buttons I will add inside this content. How can I achieve this and how can I make all the stuff in the background disabled so no one can click it ? it seems that it doesn't work for me in the next example:
jQuery(document).ready(function(){
    $(".fancybox").fancybox({
        width:600,
        height: 300,
        closeBtn    : true,
        closeClick  : true,
        openEffect  : 'elastic',
        closeEffect : 'elastic',
        scrolling   : 'no',
        autoSize    : false,
        fitToView   :   true
    });
});
        <div class='fancybox' style="display: block;width:600px;height:300px;border:1px solid black;position: absolute;left:300px;top:300px;">TEST DIV</div>