So, I'm just testing something with js, basically the number on the first input should be greater than the number on the second input to activate the submit button.
The button turns off correctly, but if I change the number, it will not be activated again
<!DOCTYPE HTML> <html> <body> <input type='number' id='first' onchange="validateNumber()"/><br> <input type='number' id='second' onchange="validateNumber()"/><br> <script type="text/javascript" > function validateNumber() { var first = document.getElementById('first').value; var second = document.getElementById('second').value; if(first > second){ document.getElementById('sub').disabled=false; }else{ document.getElementById('sub').disabled=true; } } </script> <input type="submit" id="sub"/> </body> </html>
Edit: It seems that the number arrows enter the trigger, which caused the problem
source share