$.fancybox.close() not working after getting ajax response -
i opening fancybox using following method
$.fancybox({ 'href': urlvariable, 'width': 200, 'height': 200, 'autodimensions': false, 'hideoncontentclick': false, 'showclosebutton': false, 'oncomplete': function() { /*this method close button close fancybox method works expected*/ $("a.close").on("click", function() { $.fancybox.close(); }); } });
inside first fancybox i've form , submit via ajax , when response, want close fancybox , open new 1 using similar method before opening fancybox ve tried close first 1 using below method not working expected
$.fancybox.close()
but method not working. second fancybox not getting triggered.
Comments
Post a Comment