title: .replace in JavaScript/jQuery
body: <p>I am using .replace method to replace <code>onclick</code> function on anchor tag but it is not working.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(function(){
  var htm= $('.jitu').html();
  htm.replace("show()",'showme()');
  })
  &lt;/script&gt;
  
  &lt;div class="jitu"&gt;&lt;a href="#" onclick="show()"&gt;me&lt;/a&gt; &lt;/div&gt;
  </code></pre>