JavaScript How to ❓ remove an HTML element onclick

preview_player
Показать описание
#javascript #javascriptdom #htmldom #onclick #htmljavascript
This javascript code example shows how to remove HTML elements with an onlick event.
It describes registering the click event for HTML elements with the same class and removing the clicked element.
Рекомендации по теме
Комментарии
Автор

How does js determines which element variable test2 is?

electricity
Автор

This is fine, but i have to add this fuction for set of table row if i click a row, custum alert should come, if i click yes only after that should get removed, here i can get tablerow index by using table row index, if i pass that to del fun that is to that yes button its not working

memestatement
visit shbcf.ru