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

224
Views
valores mínimos y decimales del cuadro de entrada html

 <!DOCTYPE html> <html> <head> <title>Page Title</title> <style> </style> </head> <body> <input id="stockiboundqty0" min=0 oninput="validity.valid||(value='');" step="any" autocomplete="off" type="number" placeholder="Enter Quantity"/> <button onclick="alertdialog()">submit</button> <script> function alertdialog() { alert(document.getElementById("stockiboundqty0").value); } </script> </body> </html>

Qué es lo que tengo

1. El valor mínimo de mi cuadro de entrada es cero y 'paso cualquiera' también permitirá decimales

problema

*si ingreso '.2' permite toma valor minimo 0 si ingreso 0.2 toma como 0.2

que necesito

1. Necesito permitir que el usuario ingrese .2 y tome el valor como 0.2 con el cuadro de entrada mínimo 'valor = 0' y con el paso 'cualquiera'

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

0

Retire el controlador de entrada. Eso le impide usar un punto decimal inicial.

 <input id="stockiboundqty0" min=0 step="0.1" autocomplete="off" type="number" placeholder="Enter Quantity" /> 

 <!DOCTYPE html> <html> <body> <input id="stockiboundqty0" min=0 step="0.1" autocomplete="off" type="number" placeholder="Enter Quantity" /> </body> </html>

Deberia trabajar

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!