[jQuery] Passing a Index to a function

[jQuery] Passing a Index to a function


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);
}