Exclude a certain div in jQuery global validation?
<p>Okay, so we have around 30 input boxes in our page, and instead of writing a no data line for each one, we have a simple statement:</p>

<pre><code>if( $(div).find('input:text[value=""]').length &gt; 0 ||
    $('#checkbox1Wrap').find('input:checkbox:not(:checked)').length &gt; 0 ||
    $('#checkbox2Wrap').find('input:checkbox:not(:checked)').length &gt; 0 ||
    $(div).find('select option:first-child:selected').length &gt; 0 ||
    $(div).find('textarea').val() == ""
){
    $(div).prepend('&lt;p class="field_help"&gt; Please complete all fields before moving to next step&lt;/p&gt;');
    return false;
}
</code></pre>

<p>This checks all input fields to check if their length is more than 0, but we want to exclude certain fields from being checked.</p>

<p>For example:</p>

<pre><code>&lt;input type="text" autocomplete="off" value="" name="ext" id="ext"&gt;
</code></pre>

<p>We don't want the above input field to be checked.</p>

<p>How can we make it so the if statement skips certain defined IDs?</p>
