title: JQuery - end date less than start date
body: <p>I'm trying to fix this problem I'm having. I have to input tags, one is for Training beginning date and other is for training ending date. What i am trying to do is create a jQuery function that will prevent user from selecting an end date to be less than the start date and vice versa.</p>
  
  <p>Any help would be greatly appreciated. </p>
  
  <pre><code>&lt;div class="control-group"&gt;
      &lt;label class="control-label"&gt;Training beggining date:&lt;/label&gt;
      &lt;input id="StartDate" style="margin-left: 10px;" size="16" type="text"/&gt;
  &lt;/div&gt;
  &lt;div class="control-group"&gt;
      &lt;label class="control-label"&gt;Training completion date:&lt;/label&gt;
      &lt;input id="EndDate" style="margin-left: 10px;" size="16" type="text"/&gt;
  &lt;/div&gt;
  </code></pre>