How to get the value of file upload in textbox?
<p>I am working on a website and stuck in the following code. Here I have to get the value of file upload in textbox. I am using jquery code as follows,</p>

<pre><code>$(document).ready(function() {
    $('input[name="product_picture"]').change(function() {
        var selectedValue = $(this).val();
        $('input[name="product"]').val(selectedValue);
    });
});
</code></pre>

<p>and my textbox and fileupload is,</p>

<pre><code>&lt;input type="file" name="product_picture" value="" /&gt;
&lt;input type="text" name="product" /&gt;
</code></pre>

<p>But the textbox value is showing with full path like <code>C:\fakepath\2.png</code>, But I need to get only <code>2.png</code> please help me out.</p>
