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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:48:57+00:00 2026-06-04T11:48:57+00:00

I have the following markup: <input type=number max=99 /> In Google Chrome (and possibly

  • 0

I have the following markup:

<input type="number" max="99" />

In Google Chrome (and possibly other webkit browsers), this will restrict the spinner’s up arrow from going over 99, but it does not prevent the user from typing a number higher than 99. Even onblur, the invalid value is not removed/replaced or even a warning given that the value is invalid.

Am I misinterpreting how it’s supposed to work, or is this a bug? I am using the latest version of Chrome (19 at the time of writing).

Edit:

To clarify, I want to know why a number greater than the specified max is allowed to be input in the first place. I realize that it gives a tooltip on form submission telling you that it’s invalid, but it seems like inconsistent behavior that the spinner will not allow you to go above the max, yet you can simply type a number above the max at any time to circumvent it.

If this is desired behavior for some reason, why is that? And is there a better option to enforcing the input range without resorting to JS?

  • 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-04T11:48:59+00:00Added an answer on June 4, 2026 at 11:48 am

    It does work but you only see an error message (tooltip) if you put a submit button and a form into your code:

    <form action="#" method="get">
      <input type="number" max="99" />
      <input type="submit" value="Submit!" />
    </form>
    

    jsFiddle
    ​

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

Sidebar

Related Questions

I have the following markup: <select multiple=multiple id=targetFilesList style=width:200px;height:110px;> </select> <input type=button value=Get id=btnGet
i have the following markup <form method=post action= id=form_1> <input type=hidden name=night[] value=1311976800/> <input
I have the following markup: <input type=text id=comboBox /> <ul id=comboBoxData> <li>1</li> <li>12</li> <li>123</li>
We have following markup <input type=checkbox class=foo /> <input type=checkbox class=foo /> <input type=checkbox
I have the following markup: <select style=display:none> <option value='1'>1</option> <option vlaue='2'>2</option> </select> <input type=text
Say I have the following mark up: <label for=name>Name:</label> <input type=radio name=name id=name/> The
The following markup generates an input of type checkbox with an id=IsRecurring when a
I have the following markup for my input fields: <div class=required> <label for=Name>Name <em>*</em></label>
I have the following short markup. I try to view this page in browser
I have the following markup: <button class=button type=button><span>Edit</span></button> I want to have a click

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.