I have been having a nightmare with this all day.
I have a table and in one column all the cells have the class "mainTableCellEditIcon". These cells all contain a .gif and all the gifs have an id such as "editEntryId25", "editEntryId36" etc.
If I have an array of new ids such as (15, 23, 24, 47, 48), I would like to loop through the cells with class "mainTableCellEditIcon", get the first-child element (the .gif image) and reassign its id to one from the array.
At the moment, one of the problems I am having is that jQuery's first-child selector doesn't seem to be working for me. I have tried:
to see if it recognises the first child but I get no result. There are a host of other things driving me mad with this but I'll stick to this problem for now. Any help appreciated.