I have a single row and multiple <td>s in it. In one of my functions I come across a situation where I have to find out whether my currentSelectedTD is the last <td> in the row so that I can treat it diffrently.
I tried $(currentSelectedTD).is(":last") which is not working and always returns true.
I have also tried couple of other possibilities which are not working.
Thanks in advance.
You can use .next() to check if the element has the immediately following sibling.