is it possible to set a static value for input type= file
<input type="file" id="myfile" value="empty" name="myfilename">
$('[name=myfilenmae]').val();
it returns ''
but need to get
empty
is it possible to set a static value for input type= file
<input type="file" id="myfile" value="empty" name="myfilename">
$('[name=myfilenmae]').val();
it returns ''
but need to get
empty
No, you cannot preset (or dynamically set) the value of a file field. Allowing that would raise a huge security risk, as explained in this answer.