title: Remove specific list item from DOM using Javascript
body: <p>I have the following unordered list in my DOM. I am currently searching for a method, that can delete a specific list item using Javascript. </p>
  
  <pre><code>&lt;ul class="list"&gt;
    &lt;li id="1"&gt;Depy&lt;/li&gt;
    &lt;li id="2"&gt;HI&lt;/li&gt;
    &lt;li id="3"&gt;WA&lt;/li&gt;
    &lt;li id="4"&gt;FA&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I am creating a function in JS, which accepts a string argument. For example "FA" and then it is supposed to delete find and delete list items containing string in their content. </p>
  
  <p>To Sum up I want to delete by specific list element by if it has a matched string in content.</p>