Hello,
I am facing a problem i don't know how to deal properly.
I have two field with date picker on the same form , let's date_1 and date_2
I need to do two comparisons:
Comparison 1 : date_1 - date_2 => so here it will use javascript i assume to compare the value input by customer via the date picker
Comparison 2: date_1 - current_date => here i guess current_date will be given by the php server (i don't want to do it with javascript because it depends on the computer clock)
I would need to trigger some event once the date inside the date picker are selected.
So my questions are as follow:
1./ What event in javascript is triggered by date_picker once the date is selected (i have tried "click" and "change" and so far it doesn't work) ?
2./ How to pass the variable from PHP server to javascript code to perform the calculation inside the function ?
3./ How to get value selected by input in the date picker to put inside the javascript function ?.
Thanks in advanced for your help
PS: i am not a developper :-(
I am facing a problem i don't know how to deal properly.
I have two field with date picker on the same form , let's date_1 and date_2
I need to do two comparisons:
Comparison 1 : date_1 - date_2 => so here it will use javascript i assume to compare the value input by customer via the date picker
Comparison 2: date_1 - current_date => here i guess current_date will be given by the php server (i don't want to do it with javascript because it depends on the computer clock)
I would need to trigger some event once the date inside the date picker are selected.
So my questions are as follow:
1./ What event in javascript is triggered by date_picker once the date is selected (i have tried "click" and "change" and so far it doesn't work) ?
2./ How to pass the variable from PHP server to javascript code to perform the calculation inside the function ?
3./ How to get value selected by input in the date picker to put inside the javascript function ?.
Thanks in advanced for your help
PS: i am not a developper :-(