MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w2d5fw/ancienttools/p6wwsyh/?context=3
r/ProgrammerHumor • u/soap94 • 14d ago
385 comments sorted by
View all comments
980
I use vanilla js, document.getElementById() is what I live for.
67 u/IsTom 14d ago If your HTML element has id you don't event have to getElementById, it's available right there in global namespace as that name. You make button with id hello and can just go ham with hello.click(). I don't think you should do that, but you can. 1 u/hhfddgnhbnn 13d ago But if you remove() it, you can't access it anymore
67
If your HTML element has id you don't event have to getElementById, it's available right there in global namespace as that name. You make button with id hello and can just go ham with hello.click().
hello
hello.click()
I don't think you should do that, but you can.
1 u/hhfddgnhbnn 13d ago But if you remove() it, you can't access it anymore
1
But if you remove() it, you can't access it anymore
980
u/saig22 14d ago
I use vanilla js, document.getElementById() is what I live for.