Hola,
Posiblemente:
Código javascript
:
Ver original<script type="application/javascript">
<!--
function stringToSeconds(s) {
return new Number(s);
}
function secondsToTime(s) {
return s;
}
function sumaTiempos() {
var dev=0;
for(var i = 0; i < document.forms.Valores.elements.length; i++)
if (document.Valores.elements[i].type == "text" &&
document.Valores.elements[i].name == "Valor[]")
dev += stringToSeconds(document.forms.Valores.elements[i].value);
return secondsToTime(dev);
}
function calcT3() {
document.getElementById("Resultado").value = sumaTiempos();
return false;
}
//-->
</script>
</head>
<body>
<form id="Valores" name="Valores" method="post" action="" onsubmit="return calcT3();">
<input type="text" name="Valor[]" />
<input type="text" name="Valor[]" />
<input type="text" name="Valor[]" />
<input type="submit" name="Boton" id="Boton" value="Submit" />
<input type="text" name="Resultado" id="Resultado" disabled="disabled" />
</form>
Saludos.