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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:44:45+00:00 2026-06-16T03:44:45+00:00

i am using jQuery masked input plugin . I need to define a mask

  • 0

i am using jQuery masked input plugin.

I need to define a mask for the decimal number for percentage so that all following are valid inputs –

  • 1
  • 10
  • 1.1
  • 1.10
  • 10.1
  • 10.10
  • 99.99
  • 100

A percentage cannot be greater than 100 so 100.00 is valid but 100.01 is not.

$("#" + enum.WomenInSororitiesId).mask("9?9.99"); //valid till 99.99

With the above code, I am getting at least one number, but then for 1-9 with decimal, the user needs to input it as 01.00 or 02.00.

How can I rework this mask so that it can work for above case?

Thanks.

  • 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-16T03:44:47+00:00Added an answer on June 16, 2026 at 3:44 am

    It is not possible to use the masked input plugin for this.

    You can use a validation function to validate a percentage field with decimal places as described in a number of answers to this question:

    Validating a text field containing a float is a valid percentage value?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im using jquery Masked input plugin. I have the following mask on a field:
I am using the jQuery mask plugin from http://digitalbush.com/projects/masked-input-plugin/ I want to customize my
I'm using the jquery mask from Digital Bush: http://digitalbush.com/projects/masked-input-plugin/ I have a customer signup
I'm using JQuery Masked input plugin. $(#percent).mask(99.99?9); This allows numbers like 10.999, 10.99, 01.999,
i'm using successfully a jquery datepicker with masked input plugin too in a aspx
I am having issues with using the jQuery masked input plugin within a content
We using jquery input mask from here and a code snippet that sets and
I'm using the jQuery Masked Input Plugin from here: Digital Bush I'm also using
I'm using http://digitalbush.com/projects/masked-input-plugin/ plugin. There is an input text with defined mask: <input type="text"
I am using Masked Input Plugin from digitalBush for jQuery, which is very simple

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.