title: Google sheet onEdit when value of a certain cell changes
body: <p>I want cell <code>J2:K2</code> to be cleared ONLY when value in <code>I1</code> changes.</p>
  
  <p>I have the following script so far :</p>
  
  <pre><code>function onEdit(e) {
  
      if (e.range.getA1Notation() === 'i1') {
      SpreadsheetApp.getActiveSpreadsheet().getSheetByName('sheet1').getRange('j2:k2').clear() 
      }
  }
  </code></pre>
  
  <p>I thought <code>onEdit</code> would only fires up when <code>I1</code> is changed however range <code>J2:K2</code> keeps getting cleared when I try to write values in either <code>J2</code> or <code>K2</code>.  Can someone please help me?</p>