asp.net mvc 4 - Reconnecting multiple Ajax.BeginForms when dynamically loading the forms -


i have long form made of multiple sections, each own questions. each section can saved independently <input type="submit" value="save" /> button.

each section loaded dynamically page (and there variable number of sections).

each form authored separately ajax.begin() ajax form, dynamic loading of forms appears unobstrusivejavascript not bind submit buttons , perform standard postback.

what simplest way reconnect ajax functionality of submit buttons?

after checking source of unobstrusivejavascript (which quite small) leaves permanent event handlers using .on('submit') should work dynamically loaded pages.

turns out master form missing inclusion of unobstrusivejavascript:

@scripts.render("~/bundles/jqueryval") 

worth checking fiddler when sort of thing occurs :)


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -