Name submition and End screen manipulation
This commit is contained in:
8
index.js
8
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 + "<br>" + sId;
|
||||
console.log(sInfo);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user