How can I make the cursor to become a pointer on an input file or an input text when you hover it?
My try but it does not work of course,
You can do this ugly jQuery hack:
$('input:file').each(function(){
var $input = $(this);
$input.before($('').height($input.height()).width($input.width()).css(
{
cursor: 'pointer',
position: 'absolute',
zIndex: $input.css('z-index')
}).click(function(){
$(this).hide();
$input.click();
$(this).show();
}));
});
But it prevents the animation you normally see when you mousedown on a button element. JSFiddle