Let's say for example I have this code:
<input type="file" id="file" name="">
<input class="uploadarea">
<span class="button">Browse</span>
Now I've setupped some css to change the default input file button's look, And now the question is, How do i change .uploadarea
's value depending on the value of #file
when I select a file?
I currently have this code but I don't know what to do next.
var x = document.getElementsByTagName('input');
inputfile = x[0];
textbox = x[1];