From f81a44f5ee633b5875dcc359e47c514a02602175 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Sun, 3 Dec 2023 18:03:01 +0200 Subject: [PATCH] Name submition and End screen manipulation --- index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 7150995..a4a3494 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,8 @@ function nameSubmit() { - var sname = document.getElementById("sname").value; - var sid = document.getElementById("sid").value; + var sName = "Student name: " + document.getElementById("sName").value; + var sId = "Student ID: " + document.getElementById("sId").value; + var sInfo = document.getElementById("sInfo"); + sInfo.innerHTML = sName + "
" + sId; + console.log(sInfo); } +