How can I open / execute an input file using jQuery ?!
I have a php code that has the input file its css display:none;
(Invisible), I need that when I click on an element, for example an image, the input file is executed as if I had clicked on it the code would look something like this: p>
$(document).ready(function(){
$("img").click(function(){
$("#im_us").executar();
});
});
#im_us{
display:none;
}
img{
width:20%;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><imgsrc="http://www.fundosanimais.com/Imagens/imagens-lobos.jpg">