Replace a element instead another element by jQuery
<p>I want replace a(or each) element(number) instead another element(number) in a class while running page.</p>

<p>I try as following code but doesn't word true, what do i do?</p>

<p><strong>DEMO:</strong> <a href="http://jsfiddle.net/yMnDt/" rel="nofollow">http://jsfiddle.net/yMnDt/</a></p>

<pre><code>&lt;div class="myGrid"&gt;
    1
    &lt;p&gt;
    123145
&lt;/div&gt;​

$(".myGrid").clone().find('1').replaceWith( "8" );
</code></pre>

<p>​</p>
