Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zurb foundation and events on ajax loaded content

I was wondering if there is a possibility to reinitialize foundation after the content was changed with ajax.

In my case I am trying to reinitialize foundations abide form validation on a form that is passed back from an ajax call.

I tried to just call $(document).foundation() which should reinit all the javascript ...

like image 725
Thomas Venturini Avatar asked Mar 23 '23 16:03

Thomas Venturini


1 Answers

nice, I found out how to reinitialize the abide validation on my form

just call

$(document).foundation('abide','events');

like image 66
Thomas Venturini Avatar answered Apr 03 '23 16:04

Thomas Venturini