Hello Everyone,
Below is the working code, that I just coded for you guys to understand in a easier way:
<html>
<head>
<script type="text/javascript">
function updateTotal()
{
var sundayTotal = Number(document.getElementById('sunday').value);
var mondayTotal = Number(document.getElementById('monday').value);
document.getElementById('total').value = sundayTotal + mondayTotal;
}
</script>
</head>
<body>
Sunday Duration: <input type="text" id="sunday" onkeyup="updateTotal()">
Monday Duration: <input type="text" id="monday" onkeyup="updateTotal()">
Total Duration: <input type="text" id="total">
</body>
</html>
I want to work on the same lines in ASP.NET except, instead of input I would want to use asp:textbox.
Well, I know this isn't a big deal. But, since this is the first time I am working with JavaScripts in ASP.NET. I find it tough to figure out.
It would be great, if you guys could help me out in this regard.
I look forward to hearing from you.
Regards,
tHegaMe