Foundation 4 : render custom select returned with ajax call -
i'm struggling trying figure out how render custom form select in zurbs foundation 4, has been returned ajax call. @ moment i'm re-initialising plugin, know that's not right way:
$(document).foundation('forms');
also - same question resetting select. there way of doing without hard code id of element object?
$('form select').trigger('change', true);
you can fire foundation('forms') function on parent container. example, have modal window contains form loaded via ajax. modal window has id="modal-region". custom fields in form do:
$('#modal-region').foundation('forms');
Comments
Post a Comment