title: How to get old value and new value from input type text
body: <p>How to get old value and new value from input type text;  </p>
  
  <pre><code>&lt;input type="text" name="quantity-row_111" value="1" id="quantity-row_111" onchange="myfunction(id);"&gt;
  
  function myfunction(id){
       var oldvalue = getoldvalue();
       var newvalue = getnewvalue();
  }
  </code></pre>