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 ...
nice, I found out how to reinitialize the abide validation on my form
just call
$(document).foundation('abide','events');
虽然这在基金会5中似乎仍然有效,但在基金会5中有一种更新的正确方法:
$('#yourFormID').foundation({bindings:'events'});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.