Timepicker triger

QuestionsTimepicker triger
Stavros Koureas asked 6 years ago

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
Abu Ghufran Staff answered 6 years ago

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.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

6 + 6 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?