title: Why is my event.target data not working in chrome?
body: <p>I have a function to remove a field in my form that works in Firefox but not in Chrome.</p>
  
  <pre><code>function activeDelete(del) {
      $('[data-delete="' + del + '"]').click(function(event) {
          deleteField(event);
      });
  }
  
  function deleteField(event) {
      if ((members - 1) &gt;= 3) {
          members -= 1;
          var i = $(event.target).data('delete');
          console.log(i)
          var currentdiv = $('[data-div="' + i + '"]');
          currentdiv.remove();
          $("#rollWheel").val("Roll the wheel ! (" + members + " members)");
      } else {
          $('.errors').remove();
          $('#firstCard').append('&lt;div class="errors animated fadeOut"&gt;3 participants minimum.&lt;/div&gt;');
      }
  
  
    }
  
  activeDelete(1);
  </code></pre>
  
  <p>I logged my <code>i</code> variable and it is <code>undefined</code> (in Chrome). I tested locally and also on my website.</p>
  
  <p>What is it I'm missing here?</p>