I have to open file upload dialog by clicking some other button i.e i am hiding file upload control(visibility:hidden) and on clicking of some other button i want to open th
You should position input[file] just above your custom control. And then bind to it`s onclick.
Also make in it bigger font-size, as only this way you can increase it's height.
In your example, your file input did not have an id, yet you are trying to reference it with #input. This works for me:
$('#button').click(function() {
$('input[type=file]').click();
});
Tested today the simple code given in the question and the situation has changed:
There is just one catch - on IE the .click() is a blocking operation while on other browsers it is not.