2
I have an input, where when I click, I want you to enter the file name.
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 put a DIV top, to mask the standard ugly layout of a input. However, I would like him to inform the name of the selected file, how to do this?
I want the file name inside div trabalheObs
Related/duplicate: http://answall.com/q/38877/129
– Sergio