I'm trying to set a read-only input file type when clicking the submit, but the form below did not work. Any suggestions?
<script>
$(document).ready(function() {
$("#salvar").on('click', function() {
$('#arquivo').prop('readonly', true);
});
});
</script>