title: replaceWith with jQuery Objects
body: <p>I'm trying to use replaceWith(...) function with a jQuery Object but it does not work, when i try do it with inserted DOM elements it works, but not in jQuery objects.</p>
  
  <p>I have this:</p>
  
  <pre><code>var obj = $('&lt;div id="obj"&gt;Text&lt;/div&gt;');
  obj.replaceWith('&lt;span&gt;New text&lt;/span&gt;');
  </code></pre>
  
  <p><strong>"obj" is not replaced with the new HTML.</strong></p>
  
  <p>Here is the demo:
  <a href="http://jsfiddle.net/v7EA2/" rel="nofollow noreferrer">http://jsfiddle.net/v7EA2/</a></p>
  
  <p>Maybe i did not understand how replaceWith() function works, </p>
  
  <p>Thanks by your help.</p>
  
  <hr>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Please look at here: <a href="http://jsfiddle.net/v7EA2/6/" rel="nofollow noreferrer">http://jsfiddle.net/v7EA2/6/</a></p>