How could I save data[i] value in order to use it in location.href?
  $('<td />', {text: data[i]}),
      $('<td />').append(
        $("<i [...] ></i>").click(function(){
          var sure = confirm("text");
          if (sure)
            location.href ="privateServices/deleteZone.php?zone="+data[i];
        })
that's my Javascript code inside a for cicle and data[i] is obviously undefined once i clicked on icon, so i need to storage its different value for every linked icon
 
    