admin管理员组文章数量:1417070
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 ...
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 ...
2 Answers
Reset to default 7nice, I found out how to reinitialize the abide validation on my form
just call
$(document).foundation('abide','events');
While this seems to still work for now in Foundation 5, there's an updated way to correctly do this in Foundation 5:
$('#yourFormID').foundation({bindings:'events'});
本文标签: javascriptzurb foundation and events on ajax loaded contentStack Overflow
版权声明:本文标题:javascript - zurb foundation and events on ajax loaded content - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745257697a2650199.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论