Sunday, 24 September 2017

102.set date and time to date and time picker

dd-mmy-yy of scheduled_date must be same as that of date picker

    <div class="reshedule_meeting" data-id="<?php echo $data['id'];?>" scheduled_with=<?php echo $data['scheduled_with']; ?> scheduled_date=<?php echo $scheduled_date; ?> scheduled_time=<?php echo $data['scheduled_time']; ?> ><a>Reshedule</a></div>

    var scheduled_date = jQuery(this).attr('scheduled_date');
    var scheduled_time = jQuery(this).attr('scheduled_time');
   
    jQuery("#datepicker").datepicker('setDate',scheduled_date );
jQuery("#timepicker").timepicker('setTime',scheduled_time );

No comments:

Post a Comment