I have an input, where when I click, I want you to enter the name of the file.
I have the following code:
HTML
<div class="trabalheObs">Carregar Currículo</div>
<input style="display:none" type="file" class="margin-top-20 cp" id="curriculoForm" name="curriculoForm" value="" />
CSS
.trabalheObs {
background-image: url("../imagens/curriculo.png");
background-position: 420px center;
background-repeat: no-repeat;
margin-top: 20px;
width: 460px;
height: 45px;
border-top: 1px solid #e6e6e6;
background-color: white;
border-radius: 25px;
text-indent: 23px;
font-family:"roboto";
font-weight: 300;
font-style: italic;
color: #999999;
font-size: 18px;
}
JQUERY
$(".trabalheObs").click(function () {
$("#curriculoForm").click();
});
If you notice, I placed a DIV on top to mask the default ugly layout of an input . However, I would like it to tell you the name of the selected file, how do I do that?
I want the file name to be inside the div trabalheObs