I have choose file input code,i need to change the text of the choose file and there should be a required keyword this working fine,but i want show the selected file below the button. Here is the fiddle here is my code:
<form>
<div>
upload
<input type="file" class="hide_file" required>
</div>
<br><br>
<button type="submit" id="save" class="btn btn-default wf-save" >SAVE</button>
</form>
css:
div{
padding:5px 10px;
background:#00ad2d;
border:1px solid #00ad2d;
position:relative;
color:#fff;
border-radius:2px;
text-align:center;
float:left;
cursor:pointer
}
.hide_file {
position: absolute;
z-index: 1000;
opacity: 0;
cursor: pointer;
right: 0;
top: 0;
height: 100%;
font-size: 24px;
width: 100%;
}
how to show the file name below the upload button.can anyone suggest how to do.