I teach college web development classes in Denmark and I have been messing around on the Internet since the WWW became a thing.
I love simple solutions and humour!
I teach college web development classes in Denmark and I have been messing around on the Internet since the WWW became a thing.
I love simple solutions and humour!
I would love to peek insertAdjacentHTML. I have a suspicion it uses element.innerHTML, which means you cannot manipulate the new DOM elements as they are not available in the current loop.
I teach college web development classes in Denmark and I have been messing around on the Internet since the WWW became a thing.
I love simple solutions and humour!
I teach college web development classes in Denmark and I have been messing around on the Internet since the WWW became a thing.
I love simple solutions and humour!
How was the HTML added? Can you post the function that adds the HTML?
Yes sure.
imgur.com/Cu8fpf6
recipe Render function adds it.
I would love to peek
insertAdjacentHTML
. I have a suspicion it useselement.innerHTML
, which means you cannot manipulate the new DOM elements as they are not available in the current loop.I didn't understand what you are saying?. What do you mean by "love to peek insertAdjacentHTML" ?
I'm sorry, that's my bad. I meant that I just would love to see how that function is made.
Sure wait i will give u link of my code. github.com/DVGY/JavaScript-Project...
My code is here. Pls at Look index.js , searchView.js,base.js and Search.js
Ah yes, okay... I meant the
insertAdjecentHTML
, which is a native JS method.I suspected it was using something similar to
element.innerHTML
under the hood, but the docs on MDN says it works differently.This was my best bet, though. Sorry I can't help any more than that 😞