title: jQuery validation to compare start and end date
body: <p>I have two fields. One for person_start_date and another for person_end_date. Both has three separate fields for year, month, date. I would like to validate  like Person end date >  Person start date. Thanks in advance.</p>
  
  <p>html.erb</p>
  
  <pre><code>&lt;%= datetime_select :person_start_date %&gt;
  
  
     &lt;select id="person_start_date_1i" name="person[start_date(1i)]"&gt; ... &lt;/select&gt;
     &lt;select id="person_start_date_2i" name="person[start_date(2i)]"&gt; ... &lt;/select&gt;
     &lt;select id="person_start_date_3i" name="person[start_date(3i)]"&gt; ... &lt;/select&gt;
  </code></pre>
  
  <p>html.erb</p>
  
  <pre><code>&lt;%= datetime_select :person_end_date %&gt;
  
  
    &lt;select id="person_end_date_1i" name="person[end_date(1i)]"&gt; ... &lt;/select&gt;
    &lt;select id="person_end_date_2i" name="person[end_date(2i)]"&gt; ... &lt;/select&gt;
    &lt;select id="person_end_date_3i" name="person[end_date(3i)]"&gt; ... &lt;/select&gt;
  </code></pre>