how to write the condition in jquery?
<p>I have two text input fields like so:</p>

<pre><code>&lt;input type="text" id="test1".../&gt;
&lt;input type="text" id="test2".../&gt;
</code></pre>

<p>Now I want the visitor to only be able to fill in only one of those text inputs. For example, if <code>#test1</code> has a value, when the visitor tries to enter a value into <code>#test2</code>, an alert a box should say "Fill in either test1 or test2 but not both".</p>
