Hello. Tell the code how to make the element with the class tur removed.
Dug up everything, did not find on the Internet.

  • 2
    $ ('. tur'). remove (); - etki
  • jquery.page2page.ru/index.php5/… ... is the delete content item. - DiegoKKC 2:22 pm
  • one
    > Dug up everything, did not find on the Internet. Excuse me, how did you manage to not find such a thing? - andreyqin
  • Well, I don’t know how I didn’t find it - Yuri

1 answer 1

As one of the options.

.tur { border: 1px solid #6495ed; margin: 5px; padding: 5px; } 
 <div class="tur">Элемент 0</div> <div class="tur">Элемент 1</div> <div class="tur">Элемент 2</div><br> <input type="button" value="Удалить Элемент 1" onclick="document.getElementsByClassName('tur')[1].outerHTML = '';">