title: How to run a function if an onchange is true
body: <p>I want to ask how would you put in code, if a specific Onchange() event has occurred then run a specific function in another onchange event?</p>
  
  <p>So if onchange occurs (lets call this changeoperation then it will run either function1 or function2 depending on 
   if another onchange event has occurred before(lets call this changediv), if changediv has occured and then onchange (changeoperation) has occurred then run function1 in changeoperation otherwise run function2.</p>
  
  <p>Might be confusing and I'm sorry for that.</p>