I have a form being inserted into a page with jQuery. In all other browsers, it submits correctly… but in Chrome, some extra form fields from other forms on the page are being added to the POST. I’m not using javascript to submit the form, the form is just added with javascript and then submitted with a standard submit input.
Has anyone else had similar experience? Or any ideas on how to deal with this?
Thanks
The issue is with the insertion of a
noscripttag into the DOM via javascript. I was receiving some HTML from the server with anoscripttag that had aselecttag in that. Apparently WebKit-based browsers submit that input with the form.The simple fix was to parse the HTML with jQuery and remove the noscript tags like so: