Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

118
Views
Changing the default of the enter key to tab in asp.net mvc

I am trying to change the enter key to tab in asp.net mvc.

Whenever I pressed 'Enter', the page refreshed so I used the following code and it does work mostly although I couldn't change the keycode to 9:

   $(document).on("keypress", 'form', function (e) {
            var code = e.keyCode || e.which;
            if (code == 13) {
                
                e.preventDefault();
                window.event.keyCode = 9;
                return false;
            }
        });

The following line of code does not work:

        window.event.keyCode = 9;
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!