Catch event when click a day
-
Hi.
I need get values when it click a day on the calendar.I have this code, but it doesnt show nothing in console when do click in a day.
jQuery(document).ready( function() { jQuery('#h_deliverydate').on('change',function() { console.log('cambio1'); console.log(jQuery(this).val()); }); jQuery('#e_deliverydate').on('change',function() { console.log('cambio2'); console.log(jQuery(this).val()); }); jQuery('table.ui-datepicker-calendar tr').on('click','td:not(.ui-datepicker-unselectable) a',function() { console.log('cambio3'); console.log(jQuery(this).parent().data('month')); console.log(jQuery(this).parent().data('year')); console.log(jQuery(this).text()); }); jQuery('table.ui-datepicker-calendar').on('click','a.ui-state-default',function() { console.log('cambio4'); console.log(jQuery(this).parent().data('month')); console.log(jQuery(this).parent().data('year')); console.log(jQuery(this).text()); }); jQuery( "#e_deliverydate" ).datepicker( { onSelect: letsgo_test }); function letsgo_test(date, inst) { console.log(date); console.log(inst); console.log(jQuery('#h_deliverydate').val()); } });
Regards
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Catch event when click a day’ is closed to new replies.