Php file upload

From Federal Burro of Information
Revision as of 01:55, 31 July 2013 by David (talk | contribs) (Created page with " http://jsfiddle.net/jonathansampson/dAQVM/ <pre> <input type="file" id="control"/> <button id="clear">Clear</button> var control = $("#control"); $("#clear").on("click", fu...")
(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 ) );
});