Search the Community
Showing results for tags 'dom'.
-
Hello, i'm new to javascript and currently in a bootcamp course to become a software developer. that being said there are a lot of new ideas that have been thrown at me in the past couple weeks and i'm having trouble completing our assignment for the week. I've been tasked with creating a site that takes an input and pushes it into an array and when a button is clicked that array gets made into a card that houses a name, a hogwarts house and a button. the button on these cards needs to be able to delete the card that the button is on. I've been able to do everything up until this point. i.
-
- javascript
- dom
-
(and 1 more)
Tagged with:
-
Hi, I started reading the chapter about Document Object Model, and I have a few beginner questions: 1. Quote from book: Isn't HTML element the root node? 2. Quote from book: But on http://www.w3schools.com/jsref/prop_node_nodetype.asp and https://developer.mozilla.org/en-US/docs/Web/API/Node.nodeType this is different: Also, what is the difference between "1 for an HTML element" and "10 for the HTML element"? I guess that's a mistake. Thank you in advance!
-
Hi all, I have just completed chapter 8 of the book and came across something I don't quite understand. In chapter 8 page 293 we make a new function call setHandlers and have an array of events in string format named events. In step 6, the code loops through the array and calls the following code: var checkbox = U.$(events); If I'm not wrong the U.$ is a function in a global object that returns the element for the passed in Id (the code in my U.$ function after checking for type string is return document.getElementById(id)). Now later in step 7 the code checks if the checkbox is ch