Programmatically clicking an button in html not working.

Programmatically clicking an button in html not working.

I have a button in an webpage, i want to click it programatically. This code works for chrome/Firefox but does not work for IE11 for some reason.

$('#buttonID').click();

any clue??