Hi, is there any way to change value of timepicker based on another timepicker?
For example, when i change the time to 12:01 in the first timepicker, the second one must be change to 12:46, add 45 minutes before the save.
1 Answers
Hello,
Apologies for the delay. Just in case, if answer is still required.
$col[“formatoptions”] = array(“srcformat”=>’Y-m-d H:i:s’,”newformat”=>’H:i’,
“opts” => array(“timeOnly” => true, “timeFormat”=>”HH:mm”,
“onSelect”=>”function(text,obj){ jQuery(‘[name=total].editable’).val(text) }”));
It will copy the selected time in other field ‘total’. You can apply calculation there to increase minutes.
Your Answer