Closed danielr18 closed 8 years ago
Hi danielr18,
The feature has implemented at $elem.find("input").val('')
.
I guessed that you used input
element.
It's not able to work If you use container to be input
element.
You will probably use div
or span
tag to replace a input
element.
Have you requirement to use input
container?
You are totally right. Changed my input to a div.
Picking the same file doesn't trigger onchange event, you might think, well... it didn't change, but in my case I'm using the same inputs in a form where for every select value you have to upload images. If I pick img-1 in option1, I wouldn't be able to pick img-1 in option2 because it doesn't trigger onchange.