Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
// Remove a notification banner $('#flash-message').remove(); // Detach for later reinsertion var $panel = $('#side-panel').detach(); // ... do some work ... $('#main').append($panel); // handlers still work // Empty a results list before refilling $('#results').empty(); // Replace a placeholder with real content $('#skeleton-card').replaceWith( '<div class="card"><h3>Real Title</h3></div>' ); // Remove only checked items from a list $('input:checked').closest('li').remove();
Result
Open