Skip to content

Tag: dom

execution script for several ID – loop?

I’m downloading ID from localStorage.getItem(1,22,3,14….). I want every single ID to be executed in jQuery (if it exists on the website). I can execute the code for one ID, but I don’t know what to do to make each ID after the decimal point executed. I try so but it doesn’t pass. I hav…

Javascript DOM capturing after using javascript to insert dom

I have a question regarding DOM manipulation, say I insert a grid using this function: afterwards, I try to grab all the vertexes with the class “vertex” using document.querySelectorAll(“vertex”) it doesnt work: console log of this returns: but this works: console.log of this actually …

How I can show a innerHTML inside another one?

Question: In this code I´m traying to show the local storage in DOM, how I can show the “li” of the second for inside of the “ul” in the first for? to show it like this? : This is the code I wrote, if you see in the case both innerHTML obviouly will be separate and I dont want that.