Skip to content

Instantly share code, notes, and snippets.

@rubdottocom
Created January 17, 2012 08:18
Show Gist options
  • Save rubdottocom/1625613 to your computer and use it in GitHub Desktop.
Save rubdottocom/1625613 to your computer and use it in GitHub Desktop.
jQuery: Reset input file value
<div id="container">
<input type="file" value="" id="upload_id">
</div>
<script type="text/javascript" charset="utf-8">
function reset_field(id){
jQuery(''+id).html(jQuery('#'+id).html());
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment