Find value between two times.
JavaScript
1
Posts
1
Posters
0
Views
1
Watching
-
I am inputting a start time and an end time into two boxes with the result expected in a third. I've tried various functions that come up in searches to no avail. Does anyone have an easy way to do this? <div class='col-sm-2 mb-2'> <input type='text' id='opening-time' class='form-control' data-calc='openingTime' value='00.00' tabindex='-1'> </div> <div class='col-sm-2 mb-2'> <input type='text' id='closing-time' class='form-control' data-calc='closingTime' value='00.00' tabindex='-1'> </div> <div class='col-sm-2 mb-2'> <input type='text' id='hours-open' class='form-control form-output' data-calc='hoursOpen' value='00.00'readonly tabindex='-1'> </div>