<!-- with name setup -->
<div class="file">
<label class="file-label">
<input class="file-input" type="file" name="resume" onchange="showName(event)">
<span class="file-cta">
<span class="file-icon">
<i class="fas fa-upload"></i>
</span>
<span class="file-label" id="file-name">
Choose a file…
</span>
</span>
</label>
</div>
<script>
var fileName = document.getElementById("file-name")
function showName(event){
fileName.innerText = event.target.files[0].name;
}
</script>
<div class="file">
<label class="file-label">
<input class="file-input" type="file" name="resume">
<span class="file-cta">
<span class="file-icon">
<i class="fas fa-upload"></i>
</span>
<span class="file-label">
Choose a file…
</span>
</span>
</label>
</div>
Code Example |
---|
Html :: html phone number validation pattern |
Html :: cdn material design icons |
Html :: html dns prefetch |
Html :: vue js v-for with index |
Html :: c# get url html |
Html :: google translate for website html code |
Html :: html sound |
Html :: reactive forms radio button |
Html :: input limit file type html |
Html :: fa fa dropdown icon |
Html :: what is WFH? |
Html :: html type file extension |
Html :: html fax |
Html :: at sign html |
Html :: how to remove glow around button html |
Html :: how to use javascript in html |
Html :: placeholder image unsplash html |
Html :: html number format decimal places |
Html :: abbreviations in html |
Html :: best html coding software |
Html :: html audio volume |
Html :: inline bootstrap |
Html :: times hmrl |
Html :: how to formate text in div |
Html :: display image in twig |
Html :: html add image |
Html :: html button click url |
Html :: html link to download file |
Html :: meta redirect |
Html :: circlular waiting icon bootstrap |