title: jQuery datepicker Alert Validation
body: <p>I'm having problem in <code>jQuery datepicker</code>. All I want to do is there will be alert validation for the  dateFormat of my datepicker.</p>
  
  <p>all i want to do is:</p>
  
  <pre><code>if(mydatepicker!= dateFormat) { alert('Invalid Date Format!'); }
  </code></pre>
  
  <p>just exactly like that..</p>
  
  <p>here is my code:</p>
  
  <pre><code>    $('#BirthDate').datepicker({dateFormat: 'yy-mm-dd'});
  
      });
  </code></pre>
  
  <p>Thanks in advance :)</p>