Name submition and End screen manipulation

This commit is contained in:
LinlyBoi
2023-12-03 18:03:01 +02:00
parent d246565d90
commit f81a44f5ee

View File

@@ -1,4 +1,8 @@
function nameSubmit() { function nameSubmit() {
var sname = document.getElementById("sname").value; var sName = "Student name: " + document.getElementById("sName").value;
var sid = document.getElementById("sid").value; var sId = "Student ID: " + document.getElementById("sId").value;
var sInfo = document.getElementById("sInfo");
sInfo.innerHTML = sName + "<br>" + sId;
console.log(sInfo);
} }