[Solved] How to disable keyboard to enter value input type number in jquery?


  <html lang="en">
  <head>
    <title>Input Text Number Disable</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  </head>
  <body>
    <input type="number" />
    <script>
    $('input').keypress(function(event){
        event.preventDefault();
    });
    </script>
  </body>
</html>

2

solved How to disable keyboard to enter value input type number in jquery?