I’m testing to see if a row in a table is the first child. So far I have:
//the loop works
$('#GridFolderPopup').find('tr').each(function () {
if ( $(this).is(:first) == true ) //this is the faulty line
{
$(this).addClass('GridFolderRow');
};
});
Any suggestions?
Thanks
This may be a solution:
Also reduce the code a lot.