Add CSS¶. if you meant the file contents, then with a html 5 browser (safari, chrome, firefox, IE 10+), you can use the file api to read the file. Advertisements. ; Style the input by specifying the color, font-size, top, and left properties. you access the input element by id, so the filename is: $('#files').val(). This property returns the name of the selected file with a fake path in IE, Google Chrome, and Opera, and the name of the selected file in Firefox and Safari. The value property of the input:file element is read-only, because of security reasons. Browser Support. Answer: ... How to get selected file name from input type file using jQuery; How to check for an empty string in JavaScript; Previous Page Next Page. Tip: Always add the