JSFiddle - React, Tailwind, and code Playground

HTML

Type a number in, then press "enter"
<form id="form1">
    <input type="number"/>
</form>
(Above, this works on my laptop but NOT on my android)


<br><br><br><br>


Type a number in, then press "enter"
<form id="form1">
    <input type="number"/>
    <input type="submit"/>
</form>
(Above, this works on my laptop but NOT on my android)



<br><br><br><br>


Type a number in, then press "enter"
<form id="form1">
    <input type="text"/>
</form>
(Above, this works on my laptop and my android, but on my android it shows all of the non-numeric characters too)

JavaScript

$("form").submit(function(){
    
    alert("enter button worked"); 
    
    return false;
    
    })