JSFiddle - React, Tailwind, and code Playground

HTML

<input name="mobilenum" 
 class="mobnum mobile-verified" 
 maxlength="10"  
 type="text">

JavaScript

$(document).on('keydown','.mobile-verified', function(e){
    if (e.which == 9 && $(this).val().length < this.maxLength) {
        e.preventDefault();
    }
});