title: how do I use current node instead of this?
body: <p>JS </p>
  
  <pre><code>var menuBtn = document.getElementsByClassName('btn-block');
  var lenOfMenuBtn = menuBtn.length;
  for (var i = 0; i &lt; lenOfMenuBtn; i++) {
      menuBtn[i].addEventListener('click',addMenu,false);
  }
  
  function addMenu() {
      addOkFlag();
      //addToCart();
      //removeOkFlag();
  }
  
  function addOkFlag() {
      var elmnt = document.createElement('i');
      elmnt.setAttribute('class','glyphicon glyphicon-ok');
      this.appendChild(elmnt);
  } 
  </code></pre>
  
  <p>Error is "this.appendChild is not a function". I want to call multiple function when user click the button so I call first function where I want to add <code>&lt;i&gt;</code> tag in it but I don't how to pass current node from addEventListener to append this child.</p>