Why Jquery Input Function doesnt return complete url?
<p>I am trying to make preview to my uploading Images. I have wrote a function its works fine but it doesnt return the complete url of file which is selected locally.</p>

<pre><code>function imagePreview(pid, input){

$("#"+pid).attr("src", input.value);
$("#"+pid).fadeIn('slow');
}
</code></pre>

<p>Html is </p>

<pre><code>&lt;input type="file" class="round sinput" onchange="imagePreview('img1', this);" name="f_pic" id="f_pic" /&gt;
</code></pre>

<p>this function loads image.jpg not c:\website\image.jpg (complete path which is required to display image)</p>

<p>thank you</p>
