title: how to identify the element that was clicked?
body: <p>please help to fix the <a href="http://jsfiddle.net/hfoeja7f/" rel="nofollow">script</a>. </p>
  
  <p>after the user clicks on an item .menu_button, there is a call function initForm(). This function should print one </p>
  
  <pre><code>console.log(N)
  </code></pre>
  
  <p>but displays 3:</p>
  
  <pre><code>console.log(1)
  console.log(2)
  console.log(3)
  </code></pre>
  
  <p>I do not understand</p>
  
  <p>js:</p>
  
  <pre><code>$(document).ready(function() {
      // --- PLUGIN kalininModals INITIALIZATION ---
      $('.menu_button').kalininModals();
  );
  
  (function($){
      // --- options ---  
      $.fn.kalininModals = function(options) {                    
          var options = $.extend({},options);
  
          return this.each(function(e) {
              // --- properties ---   
              var self = $(this),
                  selfModals = $('#modalOuter'),
                  selfModalsWindow = $('#modalWindow'),
                  head,
                  info,
                  actionsArr; 
  
              // --- methods ---  
              function initForm(formNum){
                  //console.log('___' + self.text());
  
                  if(formNum == 1){
                      console.log(1);
  
                      head = 'Обратный звонок';
  
  
                  }
                  else if(formNum == 2){
                      console.log(2);
  
                      head = 'Обратный звонок';
  
  
                  }
                  else if(formNum == 3){
                      console.log(3);
  
                      head = 'Обратный звонок';
                  };          
              }
  
              function makeBody(){
                  console.log('make');
  
                  $('#head .h2').text(head);
                  $('#info').html(info);
              }
  
  
  
  
              // --- handlers ---     
              function onClickControls(e){
                  self = $(e.currentTarget);
                  initForm(self.attr('data-form-num'));
                  makeBody();
  
              }
  
              // --- events ---
              $('#menuButton1, #menuButton2, #menuButton3').on('click', onClickControls); 
  
          });
      };
  })($);
  </code></pre>