title: how to call javascript function when <input> value is already modify by another function?
body: <p>The first keyup event will change the value of one input but on the change of one input <code>gn()</code> in not calling.</p>
  
  <p>This is my code</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function fn() {
    document.getElementById("one").value = "abc"
  }
  
  function gn() {
    document.getElementById("two").value = "def"
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input type="number" onkeyup="fn()"&gt;
  &lt;input type="number" id="one" onchange="gn()"&gt;
  &lt;input type="number" id="two"&gt;</code></pre>
  </div>
  </div>
  </p>