inputChromeError

by Andrea Nobili

HTML

<input id="rendicontoAllegato" class="form-control" style="height: 30px; padding: 0px;" type="file">
    
<div id="nomeDocumentoRendicontazione"></div>

JavaScript

$(document).ready(function() {
        
		// When the user select a new fine into the input tag:
        $("#rendicontoAllegato").change(function() {
        	
        	// Retrieve the name of the selected file and put it into the hidden div having id="nomeDocumentoRendicontazione":
			var selectedFileName = $("#rendicontoAllegato").val(); 			
			$('#nomeDocumentoRendicontazione').text(selectedFileName);
        	 	
		});

	
     });