What is the purpose of assigning the url to the image source in jQuery?
<pre><code>$("&lt;img src="+url+"&gt;").appendTo($("body"));
</code></pre>

<p>In this the total information is in url and then it is appended to body tag.
Why here we use the image source to assign url.</p>
