Loop through all inputs in a div with a certain class
<pre><code>&lt;script language="javascript" type="text/javascript" src="jquery-1.6.js"&gt;&lt;/script&gt;

&lt;script&gt;

    $('.disabledForm').each(function(i, div) {
    alert('in here');
    $(div).find('input').each(function(j, element){
        $(element).attr('disabled','disabled');
    });
    });
&lt;/script&gt;

&lt;div id="divDisabled" class="disabledForm"&gt;
            &lt;label&gt;Disabled Input 1&amp;nbsp;&lt;input type="text" id="disabledInput1" name="disabledInput1" /&gt;&lt;/label&gt;
            &lt;br /&gt;
            &lt;label&gt;Disabled Input 2&amp;nbsp;&lt;input type="text" id="disabledInput2" name="disabledInput2" /&gt;&lt;/label&gt;
        &lt;/div&gt;
</code></pre>

<p>Never see the "in here" message and my Inputs never get disabled so I assume I'm doing something wrong. Can someone tell me what it is I'm not doing right?</p>
