1
rated 0 times
[
6]
[
5]
/ answers: 1 / hits: 149466
/ 8 Years ago, mon, january 9, 2017, 12:00:00
I have styled a file input using CSS:
.custom-file-upload {
border: 1px solid #ccc;
display: inline-block;
padding: 6px 12px;
cursor: pointer;
}
<form>
<label for=file-upload class=custom-file-upload>
<i class=fa fa-cloud-upload></i> Upload Image
</label>
<input id=file-upload name='upload_cont_img' type=file style=display:none;>
</form>
Everything is working fine, but I’d like to display the selected file name. How is this possible using CSS or jQuery?
More From » jquery