Ace
Ace

Reputation: 938

using an input file element inside a different form

I have an IE specific problem. It happens in the latest version of IE as well as former versions. I have an input file inside a form. Now, that form, is not the form which this input belongs to because I'm using a different form (attached to the body) as the form for the input file so I could send it. I set the "form" attribute for that input. I don't see the file being sent. The content-Length is small (49). I compared it to chrom or FF and it works fine. I'm getting that specific form in my JS code and then submitting it.

Has anybody encountered this situation? It seems that even though I'm setting the form id to the input, it doesn't work.

Upvotes: 0

Views: 69

Answers (1)

devconcept
devconcept

Reputation: 3685

The form attribute does not work in IE http://www.w3schools.com/htmL/html_form_attributes.asp What you can do is "wrap" your inputs with the form to have a cross-browser solution. If your inputs are scattered this won't work thought so you must attach the form in an upper level of the document hierarchy.

Upvotes: 1

Related Questions