<commit_before>---
layout: function
title: "remove"
category: function
date: 2014-11-24 19:12:00
mozlink: https://developer.mozilla.org/en-US/docs/Web/API/Node.removeChild
mozLabel: removeChild
---

#### jQuery
{% highlight javascript %}
$(element).remove("#my-id");
{% endhighlight %}

#### Native JavaScript
{% highlight javascript %}
var element = document.getElementById("my-id")l
element.parentNode.removeChild(element);
{% endhighlight %}<commit_msg>One key to the right.<commit_after>---
layout: function
title: "remove"
category: function
date: 2014-11-24 19:12:00
mozlink: https://developer.mozilla.org/en-US/docs/Web/API/Node.removeChild
mozLabel: removeChild
---

#### jQuery
{% highlight javascript %}
$(element).remove("#my-id");
{% endhighlight %}

#### Native JavaScript
{% highlight javascript %}
var element = document.getElementById("my-id");
element.parentNode.removeChild(element);
{% endhighlight %}

{'fraction_non_alphanumeric': 0.1758957654723127, 'fraction_numerical': 0.03040173724212812, 'mean_word_length': 5.633093525179856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6930090', 'n_tokens_mistral': 321, 'n_tokens_neox': 270, 'n_words': 60}