145
rated 0 times
[
146]
[
1]
/ answers: 1 / hits: 90728
/ 14 Years ago, wed, march 2, 2011, 12:00:00
I have a form that uploads a file and targets an iframe on the page. When the user clicks submit, I want the file contents to clear out.
I tried this
$('#imageaddform').submit(function(){
$('#imagefile').val('');
});
But it clears the form before the submit, so nothing is ever uploaded.
Is how do I clear after submit?
More From » jquery