'Call button click using JavaScript or jQuery is not working in Mozilla Firefox

document.getElementById("button").click();

or

$("#button").click();

is not working in Firefox

Please help me



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source