I'm a layman and I'm learning Javascript for a simple hybrid app . The first catch is a function that is not executing:
The said whose:
function calcular(){
//ap1 = parseFloat(document.getElementById('ap1').value);
var media, final;
media = calculo.ap1.value.replace(",", ".");
media = parseFloat(media);
alert(media);
}
I referenced the file where it is in the index and made the call in a form:
<form action="javascript:calcular();" method="get"id="calculo" name="calculo" class="list">
Even so, it is not running the function. Thanks for the help.