javascript - jQuery .each loop not working in Chrome -
javascript - jQuery .each loop not working in Chrome -
i have web app utilize jquery submit forms in page. code :
$('form').each(function() { $(this).submit(); });
this working great in ie , firefox on chrome , safari submitting first form of page, ignoring totally rest.
the app asp.net mvc , forms posted httppost action in controller.
if has thought or see did totally wrong please advise, appreciated.
thx , have nice day.
submitting form typically http post request uploads form info url specified in form's action
attribute (elements input
, textarea
).
you didn't show plenty code sure, sounds problem when first form submitted javascript loop ends , not submit subsequent forms.
you either need utilize ajax, or utilize iframe
each form, or grouping fields in same, single form
.
you receive improve help if post total markup (html) shows these multiple forms.
javascript jquery html google-chrome submit
Comments
Post a Comment