Y
Hacker News
new
|
ask
|
show
|
jobs
by
jarek-foksa
1986 days ago
The modern DOM equivalent would look almost the same as the jQuery version:
document.querySelector(".class").remove(); document.querySelector(".class").after(...);