3 ms·
You don't even have to write document.getElementById as all html ID`s are global variables.
by z3t4 3y ago
You don't even have to write document.getElementById as all html ID`s are global variables.
- quickthrower2 3y agoWot! That is insane. But what if the id you want is a value in a string?
- madeofpalk 3y agowindow[myElementsId]
- quickthrower2 3y agoThat didn’t work in chrome console for me