title: validating between 2 textboxes - jquery
body: <p>how i do validate two date textboxes using jquery. i came across this snippet of code. how do i enter the textbox parameters:</p>
  
  <pre><code>$.validator.addMethod('greaterThan', function(value, element, param) { return ( IsNaN( value ) &amp;&amp; IsNaN( $(param).val() ) ) || ( value &gt; $(param).val() ); }, 'Must be greater than {0}.' );
  
  $.validator.addMethod('lesserThan', function(value, element, param) { return ( IsNaN( value ) &amp;&amp; IsNaN( $(param).val() ) ) || ( value &lt; $(param).val() ); }, 'Must be lesser than {0}.' );
  </code></pre>
  
  <p>the start date has to be greater than end date.</p>