Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8189809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:24:26+00:00 2026-06-07T03:24:26+00:00

jsfiddle: http://jsfiddle.net/ztNHL/3/ Select the top input, and then tab to the second. It will

  • 0

jsfiddle: http://jsfiddle.net/ztNHL/3/

Select the top input, and then tab to the second. It will put your cursor at the end of the value, rather than selecting all. if you remove the javascript and run again, you can see this behavior doesnt happen.

Clueless.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T03:24:30+00:00Added an answer on June 7, 2026 at 3:24 am
    $(function() {
        $('.numbersOnly').keyup(function (evt) {
            if ($.inArray(evt.which, [37, 38, 39, 40]) != -1) return false;
                this.value = this.value.replace(/[^\d\.]/g,'');
                if (evt.which == 9) this.select(); //<-- re-select field value
        });
    });            
    ​
    

    Some other modifications I made:

    • pattern made shorter (using \d alias)
    • cursor keys are re-enabled (in your code they were blocked from working)
    • the selection happens only if the tab key was pressed, not merely any key
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have a look at this jsfiddle: http://jsfiddle.net/Dh96F/1/ The Expand button will animate the widening
I have two select boxes with dates. See here the jsfiddle: http://jsfiddle.net/egrba/ The people
Okay, so I'm still learning here. Created a jsfiddle http://jsfiddle.net/JustJill54/GDVt6/ that will toggle visibility
The jsFiddle: http://jsfiddle.net/hbrls/Snn87/12/ I have a verify code field: <input type=text id=verfy_code name=verfy_code class=required
jsFiddle: http://jsfiddle.net/krU9K/4/ My WordPress posts will have embed youtube and vimeo videos beneath the
jsfiddle: http://jsfiddle.net/PBvk9/ I want the arrow for its respective tab to show up only
jsFiddle: http://jsfiddle.net/KUcrm/ I have this code: HTML <input id=Check1 type=checkbox name=ckbRG tabindex=1 checked /><label
In this JSFiddle http://jsfiddle.net/9UMRk/ A div has a margin-top of 50%. Which I would
jsfiddle: http://jsfiddle.net/MFUw3/5/ jQuery: function showDiv() { if ($(window).scrollTop() > 610) { $(.a).css({position: fixed, top:
JSFiddle: http://jsfiddle.net/dvF5d/2/ <input type=radio id=rad1 name=rad/><label for=rad1>rad1</label><br/> <input type=checkbox id=chk1/><label for=chk1>chk1</label><br/> <input type=radio id=rad2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.