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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -