....
Doing sovar description=document.getElementsByClassName("description-program"); alert(description); description.remove();
Nothing removed, even the alert is not displayed.
Prior to that, I have more removal and with him, OKvar element=document.getElementsByClassName("form-item form-type-item"); var count=element.length; for(var i=0;i<=count;i++){ element[0].remove(); }
Find more questions by tags JavaScript
Doing so
not working - jamal88 commented on June 8th 19 at 16:48
element2[0].remove();
need to replace
element2[i].remove();
- Rose_Rodrigu commented on June 8th 19 at 16:51and it worked - jamal88 commented on June 8th 19 at 16:57
but if alert is not popping up, then this js is not running... need to check the conditions above. - Rose_Rodrigu commented on June 8th 19 at 17:00