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

187
Views
HTML float number for Input min attribute

I have this short example

<input value="2" min="0.1" max="1000" type="number" />

The input with: min=0.1 max=1000 value=2 step=1 The problem is: If I click on up arrow (pseudo-element for number type=number) - the input value becames 2.1 and then 3.1 WHY does it add 0.1 on the first click? And if you change 3.1 to 3 and click up arrow you still see 3.1 and 4.1 on the second click

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Adding step attribute solves the problem

<input value="2" min="0.1" max="1000" step="0.1" type="number" />

about 4 years ago · Juan Pablo Isaza Report
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!