0
[SOLVED] How a delete paragrahs with JavaScript? I have a button clean and a function js but do not clean
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() );
}
0
Thank you soo much Ipang.