i m working on a project in cakephp. i have a datepicker in my form:
<?php echo $this->Form->input('date1', array('div' => false,'type'=>'text','label'=>false,'class'=>'smallInput','tabindex'=>'4','id'=>'date1','style'=>'width:100px')); ?>
and here's the jquery code:
$(function() { $("#date1").datepicker({ minDate: 0 ,dateFormat: 'yy-mm-dd'}); });
i want to make sure the user selects a date which is already not present in the database. can i achieve this through a function in the model?