hi all,
i'm having a table with several rows - i assigned a hover function to each row. what i wanna do is find out in my hover funtion if the selected TR is odd or even.
i used this code:
alert(tr.is(":odd"));
unfortunately it doesn't work although it should(?) i'm always getting "false".
i tried getting the rowIndex directly from the TR element like:
alert(tr.is(":odd")+"/"+tr.get(0).rowIndex);
strange thing: i'm getting the correct rowIndex, but always False from the :odd property.
what's wrong?