What can be wrong in my function?
$(function() {
$('#sumAll').Keydown(function() {
var add = 0;
$('.cl').each(function() {
add += Number($(this).val());
});
$('#sumAll').text(+ add);
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<head>
<title>Sum TextBox values</title>
</head>
<body>
<input id="Text1" class="cl" type="text" /><br />
<input id="Text2" class="cl" type="text" /><br />
<input id="Text3" class="cl" type="text" /><br />
<input id="sumAll" type="text" value="" /><br />
</body>
</html>
</body>
</html>