Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
254
Submitting With 'Enter' Key
posted

Hi,

How can I submit a form that contains igTextEditors when I press the 'Enter' key on any of the fields in the form? Like for a Login page.

I am using jquery 1.7.1, and I have tried lot of code combinations. Using both ".delegate", ".on" (since .delegate is deprecated on 1.7). Binding to keypress works for all the keys except the enter key.

I have also used the sample you guys provide and nothing. Not even alphabetic keys.

$(document).delegate("#UserName", "igtexteditorkeypress", function (evt, ui) {....

PS. I will also be using this process to do jquery ajax requests to the server (for search), so I will need the binding to work even without the default form behavior.

Any help is appreciated.

Thank You