Demo: Maturity date of a fixed deposit

Select one year


<html>
<head>
<title>Demo Project on JavaScript Date function : Maturity </title>
</head>
<script type="text/javascript">
function show_date(){
var dt= new Date();
var msg="Today Date is : " + dt.toDateString();
var my_date= dt.getDate() + (document.getElementById("s1").value * 365);
dt.setDate(my_date);
msg = msg + "<br>Maturity Date : " + dt.toDateString();
document.getElementById("msg").innerHTML= msg;
return true;
}
</script>

</body>
<body>

<select id=s1 name=no_year onChange="show_date()";><option value=1>1 Year </option>
<option value=2>2 Year</option>
<option value=3>3 Year</option>
<option value=4>4 Year</option>
<option value=5>5 Year</option>
</select>

<div id='msg'></div>

</body>
</html>



plus2net.com




Post your comments , suggestion , error , requirements etc here .




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2020 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer