I have a table and each of its td has a unique id that corresponds to some time intervals (0800 til 0830... 083
td
0800
0830
083
As all html ids are unique in a valid html document why not search for the ID directly? If you're concerned if they type in an id that isn't a table then you can inspect the tag type that way?
Just an idea!
S