Description: Contains the optional data passed to jQuery.fn.bind when the current executing handler was bound.
$("a").each(function(i) { $(this).bind('click', {index:i}, function(e){ alert('my index is ' + e.data.index); }); });