To get the value from file upload field by jquery
<p>i have contact form and there i used a file upload file. now i want to get the value it means the path from the file upload field by jQuery.
 The file upload field has the class named filebrowse and i want to store the value and echo the value in another input field. 
i used this code for retrieve the path </p>

<pre><code>var val = jQuery(".filebrowse").val();
console.log(val);
jQuery('.file-input').attr('value', val);
</code></pre>

<p>it works but it didnot show the value in the input box field. becoz by default the input box is empty so it shown nothing. now i want to display the value in the input box when one browse  file to the file upload field.</p>
