this is upload file code:
<form>
<input type="file" name="file"/>
</form>
It's appear a text box and BROWSE button to upload a file.
Well, But is there any way to upload a file by just click on "some" text, Example: "Upload your file" text. After click on this text then upload box will appear.
Try this
http://jsfiddle.net/RffbE/
<form>
<input type="file" name="file" id="file" style="display:none"/>
<span onclick="doTrick()">Upload your file</span>
</form>
and use this javascript function.
function doTrick() {
document.getElementById('file').click();
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With