title: remove any word using remove() in jQuery
body: <p>I want to make a function that remove any specific word in the content</p>
  <p>I got this code</p>
  <p><strong>jQuery</strong></p>
  <pre><code>&lt;script&gt;
  $(document).ready(function(){
      $('#cl').click(function(){
          $('div').remove(':contains(&quot;kamal&quot;)');
      });
      
      
  })
  &lt;/script&gt;
  </code></pre>
  <p><strong>HTML</strong></p>
  <pre><code>&lt;div&gt;asdjh alsdhj kamal ljkahsdhasd lakshd kamal&lt;/div&gt;
  &lt;div &gt;&lt;a href=&quot;#&quot; id=&quot;cl&quot;&gt;click&lt;/a&gt;&lt;/div&gt;
  &lt;div&gt;asdjh alsdhj  ljkahsdhasd lakshd &lt;/div&gt;
  </code></pre>
  <p>but its remove whole <code>div</code> contains <code>kamal</code> I want to remove only this word from my content not the whole <code>div</code> you can also see online demo of my code <a href="https://jsfiddle.net/zhV4D/" rel="nofollow noreferrer">here</a></p>