Hi,
I have made a EMI calculator on the user input basis and it is working fine. But there is a change in requirement. Now the User has a dropdown list for adding months (i.e 3,6,12). I have wriiten javascript function to calculate this. but the answer is not
coming exact. Please see the code and let me know what changes I have to make:-
<script type="text/javascript">
function checnum(as) {
var a = as.value;
for (var x = 0; x < a.length; x++) {
var ff = a[x];
if (isNaN(a)) {
a = a.substring(0, (a.length - 1));
as.value = a;
}
}
}
function loanemi_calc() {
var lamt = $("#lamt").val();
var dpay = $("#dpay").val();
var inte = $("#inte").val();
var term = $(&qu ...
Go to the complete details ...