Re: [jQuery] Generate and submit file upload form with jQuery

2009-12-19 Thread brian
Why don't you simply submit the form you are cloning from? It doesn't appear to me that you're adding anything to the new form. On Sat, Dec 19, 2009 at 10:57 AM, oli wrote: > Hi, > > I want to collect some input fields that are already present in my > DOM, generate a form with jQuery and submit i

[jQuery] Generate and submit file upload form with jQuery

2009-12-19 Thread oli
Hi, I want to collect some input fields that are already present in my DOM, generate a form with jQuery and submit it. Everything works fine, unless if one of those input fields is a type="file" field. $(".trform .sendform").click(function(e) { e.preventDefault(); var form = $(this).close