163
rated 0 times
[
166]
[
3]
/ answers: 1 / hits: 186642
/ 13 Years ago, mon, may 9, 2011, 12:00:00
I've a form as
<form onSubmit=return disableForm(this); action=upload.php method=post name=f id=wizecho enctype=multipart/form-data>
<input type=file name=file />
<button onClick=return disableForm(this),ajaxUpload(this.form,'wizecho_upload.php', '<br>Uploading image please wait.....<br>'); return false;>
Upload Image
</button>
</form>
It is to upload an image.
Here I need to click on the button to upload the image and I've to use onClick
event. I want to remove the upload button and as soon as the file is selected at the input, I want to fire the event. How do I do that??
More From » jquery