flexigrid select row by selectedIndex

139 Views Asked by At

i need help, how to trSelected by index on flexigrid?

$("#myTable td").prop("selectedIndex",3).addClass("trSelected")  

not working

1

There are 1 best solutions below

0
Iman Bahrampour On

At the first, please add your code for more information.

in Jquery, you can use :nth-child(n|even|odd|formula) if you are going to implement index searching.

For example:

$("#myTable td selectedIndex:nth-child(3)");

Above code get the third child of myTable -> td -> selectedIndex (The first element has the index number 1)