1

Am trying to solve and design My choose file button

<div id="image-upload"> 
     <form method='post' action='image.php' enctype='multipart/form-data'>
     Select a JPG or PNG File:<br />
     <input type='file' name='filename' size='10'/>
     <input class="red" type='submit' value='Upload' /></form>          
</div>

Nothing seems to help ME OUT i try few code with css also try to add class or id with css and it also dint help me out. but at last i give up.

jsfiddle : http://jsfiddle.net/deerox/8Y7p5/1/

And still wondering if there is new way to do so.

Any one have any idea please thanks :)

enter image description here

I want this choose button with some design

Perfect Dark
  • 191
  • 1
  • 5
deerox
  • 1,045
  • 3
  • 14
  • 28

1 Answers1

1

try this :--

make a file upload image and put it below the file uploader

hide file upload

<div>
<input type="file" id="file1" style="display:none">
<img src="your file uploader image path" id="img1" />
</div>

JS:-

$("#img1").click(function(){
$('#file1').click();
});
Harshit Tailor
  • 3,261
  • 6
  • 27
  • 40