title: Show div if dates from two inputs with jQuery datepicker do not match
body: <p>I have 2 inputs which have jQuery UI Datepickers attached to them. Basically a to and from date.</p>
  
  <p>I want to be able to show a div when the 2 dates do not match from the 2 inputs.</p>
  
  <p>I tried playing around with the following code below which shows an alert when 2 inputs match using jQuery .blur</p>
  
  <p>Problem is after some research .blur doesn't respond too well with the datepicker as when you leave the outside of the input to click a date it triggers.</p>
  
  <p>I suppose I need to find a way around this or if anyone knows any other way of seeing if datepicker inputs values are different.</p>
  
  <pre><code>$('input.date').blur(function() {
    if ($('#id1').attr('value') == $('#id2').attr('value')) {
      alert('Same Value'); return false; 
    } else { 
      return true; 
    }
  });
  </code></pre>
  
  <p>Thanks</p>