In this index class will apply to those element where index value is equal to row value.When we click on the any element it calls the selectedRow() function in which index value is assign to row variable.
selectedRow()