hi~ i am a beginner of using Javascript.I am doing a project.
The project needs:
1.creat a textbox to let the user input their mark.
2.creat a second textbox and a button
3.after enter a mark in the first box and click the button,the second textbox show the grade
That is...However,i wrote my code,but it doesnt work(no boxes show up)...can anyone help me?Thank you!
<html><head><title>grade</title></head>
<body>
<script language ="javaScript">
<form>
<input type=text value='' name=n1></input>
<input type=text value=n1 name=n2></input>
if (mark>=90){
letterGrade="A";
}
else if(mark>=80){
letterGrade="B";
}
else if(mark>=70){
letterGrade="C";
}
else if (mark>=50 ){
letterGrade ="D";
}
else {
letterGrade="F";
}
document.write("Marks"+ mark+ "get letter grade "+letterGrade);}
</form>
</script></body></html>