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 506453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:42:10+00:00 2026-05-13T06:42:10+00:00

I have been putting only jQuery mask so far, but I figured out that

  • 0

I have been putting only jQuery mask so far, but I figured out that in Mozilla they have some problem. For example if I mask input with $(".someClass").mask("9?9"); and enter only one digit ‘1’ Mozilla will submit value of "1_" which fails validation (is a number) but user definitely entered correct value.

Is there a mask like $(".someClass").mask("9?9"); that won’t display underscore for maximum number of characters (in this case 2) so that user does not think that he must enter 2 characters???

Other problem is when you lose focus on masked field but you entered just few first required characters. When you return focus on the field it continues from the las character but erases all already entered.

I have tried also Telerik but it has so menu bugs and much more problems with underscore and cursor position.

Please if wrote if you have any suggestions and solutions.

Thanks a lot.

  • 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-05-13T06:42:10+00:00Added an answer on May 13, 2026 at 6:42 am

    Can’t reproduce your problem. Check demopage. If you enter only one number the value of the input is just that number. (What jquery version? What browser version?). Provide small sample which reproduces your problem.

    http://jsbin.com/egeyo3

    Your mask looks ok to me. If you don’t want the user to think he needs to enter 2 numbers just replace the default placeholder _ with a space .

    jQuery(function($) {
        $("#test").mask("9?9", {placeholder:" "});
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have been looking on some tutorials for drawing canvas using SurfaceView, but the only
I am putting together some ideas for our automated testing platform and have been
I have been struggling with a problem that at first glance might look easy
I have been putting off developing this part of my app for sometime purely
ListViews have always been my weak point and right now I am practicing putting
have been playing with Cubepoints (wordpress plugin) and have installed the ranks module but
Have been searching how to convert a dictionary to a string. But the results
I have been trying to have a small login widget that I embed within
I have been developing a small Java utility that uses two frameworks: Encog and
The current page that I have been working on is a page where a

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.