I was wondering if there is any way to hide or change the content of the default label:No file chosen
for
<input type="file" id="myFileInput"/>
What I come up with so far is to decrease its length by half, so that it displays a tooltip.
$('input:file').css('width', parseFloat($($('input:file')).css('width'))/2 );
Any Ideas?
You cannot change input file design as its native to each browser. But you still can simulate it, sorry hacky:
See DEMO
JS:
You can also proceed in this way, but it is an hack:
Chrome was giving me this problem too. I tried to set all sorts of CSS selectors, but nothing seemed to work well. However, I did find a solution by using the FORM element.
I tested this in Chrome and FF, not ie, but I hope this helps. jsfiddle http://jsfiddle.net/aressler38/L5r8L/1/