1,448   CSS HTML jQuery JS

input type file button , something like that


It is not beautiful , is’t it ? So, let’s hide it and create a new button  !

// hide the file input
<input id="imageLocalInput" accept="image/*" name="imageLocalInput" type="file" value="" style="display:none;"/>
// create a new button
<button id="imageLocalButton" class="btn btn btn-primary pull-right" type="button">Upload</button>
// for click 
 return $("#imageLocalInput").click();

Leave a Reply

Your email address will not be published. Required fields are marked *