how to write php variable inside a javascript code
<p>this is the path i'm using in an img src attribute which i'm using in a php program</p>

<pre><code>'user/hangout_images/".$imag_addr." '
</code></pre>

<p>can anybody tell how to insert the path given above into the path given in the following javascript code?</p>

<pre><code>$(document).ready(function() {
  $('#imageid').attr( "src", "/new/path/to/image.jpg" );
});
</code></pre>
