u can use this option
$(function() { const $inputs = $('.in:not(.allow-ime)'); $inputs.on('input', function() { this.value = this.value.replace(/[^\x00-\x7F]/g, ''); }); });