0
How can I open/Run an input file using jQuery?!
I have a php code that has the input file your 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 like this:
$(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>
<img src="http://www.fundosanimais.com/Imagens/imagens-lobos.jpg">