I have some elements like these:
<input type="file" name="fake">
<input type="file" name="real" style="display:hidden;">
<a href="javascript:void(0)" onclick="addToList()">
<input type="submit" name="submit" value="Submit">
My question is : is it possible to assign the value of the “fake” input to “real” input by using jquery? So that when I hit Submit button, the “real” file input will be uploaded.
addToList = function(){
//what should I do here to assign the "real" file input value
}