$("table tr").click(function() { clickFunc($('table tr').index(this);
}); On Feb 8, 10:54 pm, Pedram <pedram...@gmail.com> wrote: > Dear folk, > I want to get the index of the TR and send it to the Function , I > don't know how to it . this is what I'm trying to do > > $("table tr").bind("click",{IndexName:$(this).index(this)},clickFunc) > > function clickFunc(event){ > console.log(event.data.IndexName); > > }