javascript - Zurb foundation equalizer resize after ajax -
i ran problem foundation equalizer, trying dynamically readjust div heights equalizer after change content ajax. searched foundation documentation, stack overflow found no answer problem.
i noticed readjusts when resize browser, possible, want find out how trigger it. (i don't want tell visitors resize browser every time click link)
edit: seems work, best solution?
$("#media").click(function(){ $.ajax({ url: "mediaproduction.html" }) .done(function( html ) { $( "#main-content" ).html( html ); $(document).foundation(); }); });
this use on our site talking about:
$(document).foundation('equalizer','reflow');
Comments
Post a Comment