joaopereirawd / animatedModal.js

animatedModal.js is a jQuery plugin to create a fullscreen modal with CSS3 transitions. You can use the transitions from animate.css or create your own transitions.
MIT License
962 stars 207 forks source link

open animatedModal after ajax request #29

Closed morteza-gho closed 7 years ago

morteza-gho commented 8 years ago

Hi, how to open animatedModal after ajax request?

arifhussain353 commented 8 years ago

waiting for same issue response

khiconit commented 8 years ago

Me too

sameerpallav commented 8 years ago

its easy... modify modal.click handler to modal.on('open', function(){...}) then use $(selector).trigger('open') in your ajax success.

parvez301 commented 7 years ago

in success function trigger the click event manually.
eg success : function(response){ $("#your-id-name").trigger('click'); }