JSFiddle - React, Tailwind, and code Playground

HTML

<input id="txtSchool" class="easyui-textbox" value="a.b.c" style="width:100%;height:32px">

CSS

</style>
    <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/color.css">
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.min.js"></script>
    <script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<style>

JavaScript

$(document).ready(function () {
  $('#txtSchool').textbox('textbox').bind('keypress focus blur', function (e) {
    CallEvents($(this), e);})
});

function CallEvents(Sender, e) {            
  if (e.type == 'focus') {
    var rd = $(Sender).prop('readonly');
    var rd = false; //testing...
    if (!rd) {
      var q = String($(Sender).val());
      var x = q.replace(/\./g, "a");   //replacing dot by a
      //$.messager.alert('School', 'focus ' + x, 'info');
      $(Sender).val(x);   //does not fill the required field with the x content
      return;
    }
  }
  else if (e.type == 'keypress') {
    //$.messager.alert('School', 'keypress ', 'info');
  }
  else if (e.type == 'blur') {
    //$.messager.alert('School', 'blur', 'info');
  }
};