Php file upload

From Federal Burro of Information
Revision as of 02:17, 31 July 2013 by David (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

http://jsfiddle.net/jonathansampson/dAQVM/

<input type="file" id="control"/>
<button id="clear">Clear</button>
var control = $("#control");

$("#clear").on("click", function () {
    control.replaceWith( control = control.clone( true ) );
});

doesn't always work.