Clear a File Input

0
0

You can just clone it and replace it with itself, with all events still attached.

var input = $("#control");

function something_happens() {
    input.replaceWith(input.val('').clone(true));
};
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.