Iterate through form not working
<p>I have been using this code to iterate through form elements and until now it has worked flawless:</p>

<pre><code>$(document).ready(function() {
    $(':input', '#myform').each(function() {
            alert('test');
            $(this).attr('disabled', 'disabled');
    });         
});
</code></pre>

<p>But on this new form it does not work, even though the form is almost the same as the others, it's too big to put it all here though.
If I try this code, one messagebox pops up, if I set the alert() to show the name of $(this), it shows the form name...</p>

<pre><code>$(document).ready(function() {
      $('#myform').each(function() {
        alert('test');
      });
});


&lt;form id="myform" name="myform" method="POST"&gt;
....
</code></pre>

<p>Any idea why this happens?
Thank you</p>
