Jquery add input
<p>I have <code>&lt;input type="file" name="p1" size="100" /&gt;</code></p>

<p>please tell me how to add <code>&lt;input type="file" name="p2" size="100" /&gt;</code> and so on using jquery add ..</p>

<p>thanks</p>

<p>I am trying
    var i = $('input').size() + 1;</p>

<pre><code>$('a.add').click(function() {

$('&lt;input type="file" name"p' + i + 'size="100" /&gt;')
    .animate({ opacity: "show" }, "slow")
    .appendTo('#inputs');
    i++;
 });
</code></pre>
