How I can clone value attribute of file input field. Something like this:
<input type="file" id="field1"/>
<input type="file" id="field2"/>
<script>
$('#field2').val($('#field1').val());
</script>
How I can clone value attribute of file input field. Something like this:
<input type="file" id="field1"/>
<input type="file" id="field2"/>
<script>
$('#field2').val($('#field1').val());
</script>
I found solution of this problem:
If you are wanting them to stay the same when user interacts with them:
Triggering the blur() on page load will do the same as code you already have
EDIT Just realized these are file fields... browser security limits what you can do with them