changing validation of input value based on list-box value
<p>I am using jQuery validation plugin ( <a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" rel="nofollow">http://bassistance.de/jquery-plugins/jquery-plugin-validation/</a> )</p>

<p>I have following structure:</p>

<pre><code>&lt;select name="s1" id="s1"&gt;
   &lt;option value="url"&gt;url&lt;/option&gt;
   &lt;option value="normal"&gt;normal&lt;/option&gt;
&lt;/select&gt;
&lt;input name="s1_value" id="s1_value" type="text" /&gt;
</code></pre>

<p>Now, I need validation rule (using jQuery validation plugin) as</p>

<p>If I select 'url' as value in list box, then input field should only contain valid URL</p>

<p>If I select 'normal' as value in list box, then input field can contain any text</p>

<p>For any selection, value for input field should not be empty</p>

<p>How to do this?</p>
