SUM TWO TEXT BOX VALUE AND GET GRADE LETTER IN THIRD TEXTBOX : i have an html form with three textboxes i want to sum the automatically using juery at the same time i want to use if else statement to check if the result is  greater than 100  the value in next text box should be A

see the code below


<script>`

    $('.number').keyup(function() 
{

    var sum = 0;
    $('.number').each(function() 
{

    sum += Number($(this).val());
     });
    $('#total').val(sum);
    if($('#total').val(sum) > 1)
	{
    form.total2.value="A";
    }
});

    	}
});

    </script>
    </body>
</html>