Seems really a simple thing but can\'t figure it out. I\'ve been using the onchange event on element and it works well. Once the user browses and selects a file, I get the
function resetFileInput ($element) { var clone = $element.clone(false, false); $element.replaceWith(clone); }
And then use live:
$('#element_id').live('change', function(){ ... });
Worked well for me!