Name submition and End screen manipulation
This commit is contained in:
8
index.js
8
index.js
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user