[SOLVED] How a delete paragrahs with JavaScript? I have a button clean and a function js but do not clean | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

[SOLVED] How a delete paragrahs with JavaScript? I have a button clean and a function js but do not clean

https://code.sololearn.com/Wedr3d4z4m8r/?ref=app

10th Oct 2021, 3:37 PM
Benjamin Salas
Benjamin Salas - avatar
2 Answers
+ 3
Just curious, why don't you have a schedule for Saturday? And you reload the page rather than "clearing things up" but that won't work in Code Playground. function actualizar() { // collect all <p> under #container const targets = container.querySelectorAll( "p" ); // abort when none was found if( !targets.length ) return false; // for each <p>, remove <p> targets.forEach( e => e.remove() ); }
10th Oct 2021, 3:59 PM
Ipang
0
Thank you soo much Ipang.
10th Oct 2021, 6:47 PM
Benjamin Salas
Benjamin Salas - avatar