html - Setting a maximum value less than a number on a decimal based input field -


i'm making input field accepts number of decimals. want validate input number 5 or higher , less 100. using min , max attributes able create following html snippet. appears function correctly in every browser looks horrible.

<input type="number" step="any" min="5" max="99.9999999999999999" required> 

the validation

is there decent way (without rounding shenanigans)?

i know can solved using javascript i'm wondering if there's decent way html. i'm trying validate input of users have html5 form validation not javascript. checking input server-side forces user load page again, i'm trying avoid.

maybe want include css styles in <head> google makes input fields better standart input fields browser:

<link rel="stylesheet" href="https://ssl.gstatic.com/docs/script/css/add-ons1.css"> 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -