onenterkey press in dhtmlx form

hello,
I am working in a login form and after entering data to inputs if enter is pressed then form should be submitted.please help…this is the link on which i am working prakriti.in/login.aspx

Try this:

myForm.attachEvent("onKeyUp", function (id, value) { if (value.keyCode == 13) { myForm.save(); } });

hello,
thank u sooooo much for the reply ,but this is not working,please suggest again…

Hello
Try to use getInput() method to get HTML input from the form and then attach event handler on it.

thank u vvvmuch it worked,i got the solution the code is :
mylogin.getInput(“txtPassword”).onkeyup = function (event) {
if (event.keyCode == 13) {
alert(“enter hit”);
}
}

You are welcome!