<form>
<table>
<tr>
<!--starting time is enter by user-->
<th>Start Time:</th>
<td><input type="time" name="startTime"></td>
</tr>
<tr>
<!--interval is select by user-->
<th>Interval:</th>
<td>
<select name="interval" >
<option value="30 minutes">30 minutes</option>
<option value="1 hours">1 hours</option>
</select>
</td>
</tr>
<tr>
<th>End Time:</th>
<td>
<!-- show end time here
and data should be readonly(not editable) -->
</td>
</tr>
</table>
</form>
end time should be update (add startTime&interval) itself after start time and interval is selected. And data from start time and interval should remain. So I only want it to update the end time variable. How can I achieve that?
I had try used input type:button to update the end time. But the start time and interval data is refreshed.