I'm trying to simulate click event on some element using jQuery when click enter in some textbox:
$("input[id$=txtbox]").bind('keypress', function (e) {
if (e.keyCode === 13) {
SimulateClick();
}
});
function SimulateClick()
{
$("input[id$=btn]").trigger('click');
}
here is the HTML:
<asp:Button ID="btn" runat="server" OnClick="checkUserPass_Click" Style="display: none" />
its not working on firefox. any ideas or work arounds?