title: Input jQuery get old value before onchange and get value after on change
body: <p>I have an <code>input text</code> in jQuery I want to know if it possible to get the value of that <code>input text</code>(<code>type=number</code> and <code>type=text</code>) before the <code>onchange</code> happens and also get the value of the same input input text after the onchange happens. This is using jQuery.</p>
  
  <p><strong>What I tried:</strong></p>
  
  <p>I tried saving the value on variable then call that value inside onchange but I am getting a blank value.</p>