24th Sep 2018, 10:18 AM
B.D
B.D - avatar
7 Respuestas
+ 2
change the 'int' keywords for 'var' or 'let'
24th Sep 2018, 10:21 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 1
thank you but why isnt it changing the time input when we click the year days or months button
24th Sep 2018, 10:26 AM
B.D
B.D - avatar
+ 1
change the functions like this: function take(){ document.getElementById('t').value = document.getElementById("t").value; } function takei(){ document.getElementById('t').value = parseInt(document.getElementById("t").value) /parseInt(365); } function takein(){ document.getElementById('t').value = parseInt(document.getElementById("t").value) /parseInt(12); }
24th Sep 2018, 10:36 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 1
thank you btw why is the compound interest yearly textbox showing undefined?
24th Sep 2018, 10:42 AM
B.D
B.D - avatar
+ 1
inside the function coma, change the last two line like this: var ans = parseInt(mina) * parseInt(document.getElementById("p").value) // remove the quotes around mina document.getElementById("siy").value = ans // put ans instead of ans.value
24th Sep 2018, 10:52 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 1
thank you very much
24th Sep 2018, 10:55 AM
B.D
B.D - avatar
+ 1
when i click the compound interest button after changing the value of p r and t why isnt the value of the half yearly textbox changing?
24th Sep 2018, 10:59 AM
B.D
B.D - avatar