JSFiddle - React, Tailwind, and code Playground
HTML
Name: <input type='text'>
<br>Zip Code: <input type='text' id='zip'>
<br>Something Else: <input type='text' id='somethingElse'>
JavaScript
$(document).ready(function(){
$('#zip').keydown(function(e){
//if the zero key is pressed
if(e.keyCode==48) {
$(this).blur();
}
});
$('#somethingElse').focus(function(){
$(this).val('something else when focusing here!');
});
});