On the create event of the form I intialize the datepicker:
asm
$(function () {
// INITIALIZE DATEPICKER
$('.datepicker').datepicker({
clearBtn: true,
autoclose: true,
todayHighlight: true,
weekStart: 1,
format: "dd-mm-yyyy" ,
startDate: '-0'
}).datepicker('update', new Date());
$('.datepicker').on('change', function () {
var pickedDate = $('input').val();
**//Here I need a call to a delphi procedure**
});
});
end;
How to call a delphi procedure on the onchange event of this datepicker?
For example the procedure:
procedure TForm1.mychange(datuminfo:string);
begin
showmessage('date changed to: ' + datuminfo);
end;