‘);
alert(“Nav not obtainable for the chosen scheme”);
}
}, “json”);

// add on 19 08 2014
//window.location.change(“/Mf/Efficiency/SIP?id=” + $(this).val());
});

$(‘#btnCalculate’).click on(operate (ev) {
if ($(“#MutualFund”)[0].selectedIndex == 0) {
alert(“Please choose mutual fund”);
return false;
}
if ($(“#Scheme”)[0].selectedIndex == 0) {
alert(“Please choose scheme”);
return false;
}
if ($(“#InceptionDate”).val() == ”) {
alert(“Inception date cannot be clean”);
return false;
}

if ($(“#InvestAmount”).val() == ”) {
alert(“Funding quantity cannot be clean”);
return false;
}
var Investamount = ($(“#InvestAmount”).val()).toString().change(/,/gi, “”);
if (!$.isNumeric(Investamount)) {
alert(“Funding quantity ought to be numeric”);
return false;
}
if (Investamount new Date($(“#LatestNavDt”).val())) {
alert(“Up to now cannot be higher than newest nav date ” + Date.parse($(“#LatestNavDt”).val()).toString(“dd MMM yyyy”));
return false;
}
if ($(“#FromDate”).val() != “” && $(“#ToDate”).val() != “”) {
if (new Date($(“#FromDate”).val()) >= new Date($(“#ToDate”).val())) {
alert(“Begin date ought to be lower than finish date”);
return false;
}
}
this.kind.submit();
});

Source

Leave a Reply