$.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

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -