Mohammed Ibrahim
New member
how can i do this in the html ?
In this lab, we practise JavaScript skills covered in Chapter 18 and 19. You need to create one textbox to input exam mark; another textbox to display the corresponding grade and a button. After a mark is entered into the first textbox and the button is clicked, the grade should be displayed in the other textbox.
Rules to determine the grade: when the mark entered in the mark textbox is >= 90, the grade displayed in the grade textbox is A; when the mark entered in the mark textbox is between 80 and 89, the grade displayed in the grade text box is B; when the mark entered in the mark text box is between 70 and 79, the grade displayed in the grade text box is C; when the mark entered in the mark text box is between 60 and 69, the grade displayed in the grade text box is D when the mark entered in the mark text box is below 60, the grade displayed in the grade text box is F
In this lab, we practise JavaScript skills covered in Chapter 18 and 19. You need to create one textbox to input exam mark; another textbox to display the corresponding grade and a button. After a mark is entered into the first textbox and the button is clicked, the grade should be displayed in the other textbox.
Rules to determine the grade: when the mark entered in the mark textbox is >= 90, the grade displayed in the grade textbox is A; when the mark entered in the mark textbox is between 80 and 89, the grade displayed in the grade text box is B; when the mark entered in the mark text box is between 70 and 79, the grade displayed in the grade text box is C; when the mark entered in the mark text box is between 60 and 69, the grade displayed in the grade text box is D when the mark entered in the mark text box is below 60, the grade displayed in the grade text box is F