replace tag content using jquery
<p>In my html I have this code:</p>

<pre><code>&lt;div class="selfclear"&gt;
      &lt;h3&gt;&lt;a id="lnkName" href="/dir/subdir/?id=577"&gt;Name&lt;/a&gt;&lt;/h3&gt;
       &lt;address&gt;
                       Street name, 3  &lt;br /&gt;3222 City&lt;br /&gt;Phone. : 0202 777 876 
        &lt;/address&gt;
&lt;/div&gt;
</code></pre>

<p>I want to replace the phone number depending on the id passed to the url within the  tag using Jquery.</p>

<p>So far I was able to get the id  doing so:</p>

<pre><code>function getID(){
    var a = $('#lnkName').attr('href').split('=');
    var id= a[1];
}
</code></pre>

<p>and the content of  with :</p>

<pre><code>function print_Address(){
    var div = $('#lnkName');
    if (!div.length) return;
    var adress = $('#lnkName').parent().siblings('address').html();
    adress.replace( '/Phone : .*/', '/Phone : 777' );
    var newtel = $('#lnkName').parent().siblings('address').html( adress );
        div.html(newtel).show('slow',function(){
          });
}
</code></pre>

<p>The problem is with replacing function as the print_Address() just print me the content of address but does not load the new content</p>

<p>Thanks for your help</p>
