[Solved] Delete first DIV tag in a html document [closed]


Simple:

$('div:first').remove()

With check

if ($('div').length) > 50) {
    $('div:first').remove();
}

1

solved Delete first DIV tag in a html document [closed]