You can just clone it and replace it with itself, with all events still attached:'
<input type="file" id="control">
andvar input = $("#control");
function something_happens() {
input.replaceWith(input.val('').clone(true));
};
No comments:
Post a Comment