Get all inputs from a submitted form
<p>I have a form that has no id, no class whatsoever. I need to get all the inputs that are inside it, I have a script but it will get all inputs no matter if they are inside my form or not.</p>

<p>Of course I could add classes, id's to my forms but is there any way of doing what I want without adding identifiers to my form?</p>

<p>It is only logical that in my case it will iterate trough every input on my page, but how can I make sure it will only iterate trough every input on current form?</p>

<pre><code>$('form').submit(function(e){
    e.preventDefault();

    $('input, textarea').each(function(){
        alert('a'); // Alerts on every input, not just inside this form...
    });
});
</code></pre>

<p>Fiddle: <a href="http://jsfiddle.net/dsN43/" rel="nofollow">http://jsfiddle.net/dsN43/</a></p>
