JSFiddle - React, Tailwind, and code Playground

by Siddharth Motwani

HTML

<input name="Phone" type="text" id="Phone"/>

JavaScript

$(document).ready(function () {
  //called when key is pressed in textbox
  $("#Phone").keypress(function (e) {
     
           

     if (e.which == 13) {
        //do something
      alert("enter pressed");
               return false;
    }
     
     
   });
});