Below is part of the jquery code I have which displays the file input and a \"Clear File\" button.
var $imagefile = $(\'\').attr({ type: \
this code works for all browsers and all inputs.
$('#your_target_input').attr('value', '');