views:

1609

answers:

3

Hello,

Am trying to trigger an upload box (browse button) using jquery. But it doesnt seem to work.

$('#fileinput').trigger('click');

Please help. Thank you.

+3  A: 

That's on purpose and by design. It's a security issue.

Chad Grant
+3  A: 

You can try something like this instead.

Kirtan
A: 

I'm trying to do the same too. But jQuery .trigger doesn't work.

So, the only solution is to skin the input file with css?

Thank you.

ShiroiSame