title: how to use jquery validate to compare two dropdown value
body: <p>I have two dropdown (start time &amp; end time) that I want to validate using jquery validate, making sure the end time is greater than start time, but I can't get it to work.  It is always showing the error message no matter what I put.  Can someone please take a look at my code and tell me what I'm doing wrong?  </p>
  
  <p><a href="http://jsfiddle.net/uVnQ4/12/" rel="nofollow">JSFIDDLE example here</a></p>
  
  <pre><code>&lt;label for="start_time"&gt;Start Time:&lt;font color="red"&gt;*&lt;/font&gt;&lt;/label&gt;
              &lt;select name = 'start_time_hour'&gt;
                  &lt;option value = '10'&gt;10&lt;/option&gt;
                  &lt;option value = '11'&gt;11&lt;/option&gt;
                  &lt;option value = '12'&gt;12&lt;/option&gt;
              &lt;/select&gt;
  &lt;label for="end_time_hour"&gt;End Time:&lt;font color="red"&gt;*&lt;/font&gt;&lt;/label&gt;
              &lt;select name = 'end_time_hour'&gt;
                  &lt;option value = '10'&gt;10&lt;/option&gt;
                  &lt;option value = '11'&gt;11&lt;/option&gt;
                  &lt;option value = '12'&gt;12&lt;/option&gt;
              &lt;/select&gt;
  </code></pre>
  
  <p>javascript</p>
  
  <pre><code>$(document).ready(function(){
      jQuery.validator.addMethod("le", function(value, element, param) {
      return this.optional(element) || value &lt;= $(param).val();
      }, "less"); 
      jQuery.validator.addMethod("ge", function(value, element, param) {
      return this.optional(element) || value &gt;= $(param).val();
      }, "greater");  
  $("#add").validate({
      event: "keyup",
      highlight: function(element, errorClass, validClass) {
              $(element).addClass(errorClass).removeClass(validClass);
          },
  rules:{
          start_time_hour:{le: "#end_time_hour"},
      end_time_hour:{ge: "#start_time_hour"},
      },
  messages:{
      start_time_hour:{le: "Must be less than end time"},
      end_time_hour:{ge: "Must be greater than start time"},
  },
  });
  });
  </code></pre>