From 799303ac2f0c7f3563d9125af6ff7a9becb35ab6 Mon Sep 17 00:00:00 2001 From: nmoxey Date: Thu, 3 Oct 2024 20:10:42 -0400 Subject: [PATCH] added input list mini-project --- students/nmoxey/index.html | 9 +++++++++ students/nmoxey/main.js | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/students/nmoxey/index.html b/students/nmoxey/index.html index a9c158c..249911d 100644 --- a/students/nmoxey/index.html +++ b/students/nmoxey/index.html @@ -8,6 +8,7 @@ Nate's Landing Page +
@@ -31,5 +32,13 @@

mrbrbrn.com

+
+

What's your favorite game?

+
    +
  1. Castle Crashers
  2. +
+ + +
\ No newline at end of file diff --git a/students/nmoxey/main.js b/students/nmoxey/main.js index e69de29..0d9c75a 100644 --- a/students/nmoxey/main.js +++ b/students/nmoxey/main.js @@ -0,0 +1,7 @@ +putInList = function() { + let inp = document.getElementById("inp").value;//get input text + let ul = document.getElementById("lis");//get list + let entry = document.createElement('li'); + entry.appendChild(document.createTextNode(inp)); + ul.appendChild(entry); +} \ No newline at end of file