I have an html with Jquery but I want to get the extra hours with the following code, in my html I have 4 input type="time":
The detail is in what you get the hours but not the minutes, how can I complete my code?
<script>
function HorasExtra() {
var HrsTrabajadas = $("#HrsTrabajadas").val();
var HrsExtra = 9; //esto representa una jornada laboral de 9 horas diarias
var HrsExtraTrabajadas = $("#HrsExtra").val();
var Resultado = parseFloat(HrsTrabajadas) - parseFloat(HrsExtra);
$("#HrsExtra").val(Resultado);
}