javascript - set default value for type=file : <input type="file" name="file1" value="image.gif"> but it doesn't work
how can i set the default value of my 'file' type input.
i've tried <input type="file" name="file1" value="image.gif"> but it doesn't work.
how can i dynamically set it using javascript?
i've also tried using document.form.file1.value="image.gif";
it's fruitless too.
kindly advise.
Thanks
i've tried <input type="file" name="file1" value="image.gif"> but it doesn't work.
how can i dynamically set it using javascript?
i've also tried using document.form.file1.value="image.gif";
it's fruitless too.
kindly advise.
Thanks