title: Compare start time amd end time with jquery?
body: <p>Here the code</p>
  
  <pre><code>$(document).ready(function() {
      $('#st').change(function(){
          var st = $('#st').val(); // start time Format: '9:00 PM'
          var et = $('#et').val(); // end time   Format: '11:00 AM' 
  
          //how do i compare time
              if(st &gt; et)
              {
                 alert('end time always greater then start time');
              }
      });
  });
  </code></pre>
  
  <p>if i have time range as follows</p>
  
  <pre><code>Start Time Range (listbox) =   12:00 AM To 11:59PM
  
  End Time Range  (listbox)  =   12:00 AM To 11:59PM
  </code></pre>
  
  <p>then how to validate start-time less then end-time OR end-time greater then start-time</p>
  
  <pre><code>Start-time &lt; End-time  OR  End-time &gt; St-time
  </code></pre>
  
  <p>consider time format in js-code, due to time-format am unable to implement difference logic</p>
  
  <pre><code>Format: '9:00 AM'
  Format: '5:00 PM'
  </code></pre>