JQUERY: Combining 2 function using OR operator
<p>How would I combine two function with an operator <code>OR ( || )</code>
I would like to combine the 2 ifs statement in the script
<a href="http://jsfiddle.net/andrewvmail/emeYT/7/" rel="nofollow">Here</a> is the fiddle</p>

<p><strong>HTML</strong></p>

<pre><code>&lt;form name="formName" method="post" action="#"&gt;
&lt;input type="text" name="attendant[email]" size="13" value=""&gt;  
&lt;input type="text" name="attendant[email]" size="13" value=""&gt;
&lt;input type="text" name="attendant[email2]" size="13" value=""&gt;
&lt;input type="text" name="attendant[email2]" size="13" value=""&gt;
&lt;input type="submit" name="submit"&gt; 
&lt;/form&gt;
</code></pre>

<p><strong>SCRIPT</strong></p>

<pre><code>$("form").submit(function(event) {
    if ($("input:text[name='attendant\\[\email\]']", this).filter(function() {
            return $.trim(this.value) == "";
        }).length) {
        window.alert("No member email1 should be empty.");
        event.preventDefault();
    }
        if ($("input:text[name='attendant\\[\email2\]']", this).filter(function() {
            return $.trim(this.value) == "";
        }).length) {
        window.alert("No member email2 should be empty.");
        event.preventDefault();
    }
});
</code></pre>
