title: Remove string from a string jquery
body: <p>I am trying to replace within a string using jquery </p>
  
  <pre><code>var myString ="qwerty"
  
  var avoid ="t"
  </code></pre>
  
  <p>I want to do someting like </p>
  
  <pre><code>myString.replace(avoid,'');
  </code></pre>
  
  <p>I was able to remove like <code>myString.replace('t','');</code> But i want it to be like <code>myString.replace(avoid,'');</code></p>
  
  <p>How to do it?</p>
  
  <p>JsFiddle : <a href="http://jsfiddle.net/nKSZT/" rel="noreferrer">http://jsfiddle.net/nKSZT/</a></p>