title: javascript Uncaught ReferenceError: e is not defined
body: <p>I'm getting <strong>Uncaught ReferenceError: e is not defined</strong>.</p>
  
  <p><strong>Input field</strong></p>
  
  <pre><code>&lt;input class="form-control text-right" name="amount" maxlength="45" value="${exp.Amount}" onkeyup='evMoneyFormat( e );'  required="required"&gt;
  </code></pre>
  
  <p><strong>Script</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  function evMoneyFormat(evt) {
      //--- only accepts accepts number and 2 decimal place value
      var theEvent = evt || window.event;
      var key = theEvent.keyCode || theEvent.which;
      key = String.fromCharCode(key);
      var regex = /^[0-9]{1,14}\.[0-9]{0,2}$/; // number with 2 decimal places
      if (!regex.test(key)) {
          theEvent.returnValue = false;
          //--- this prevents the character from being displayed
          if (theEvent.preventDefault) theEvent.preventDefault();
      }
  }
   &lt;/script&gt;
  </code></pre>
  
  <p>How can i fix this ?</p>