That's now working (thanks), but it would be good to do the same backwards, in case a user selected a later date and then earlier date. Obviously prevUntil() would sort that out but what is the best way to determine which function to use?
Is there a way to find out whether a sibling appears earlier or later in the DOM, so I could put it into a conditional block?
Also, if I select a fourth date this function isn't executed, any ideas?
<edit>I've seen the problem, this function only works for immediate siblings, so we have a bit of a problem if the second date is in a different row <tr>, any suggestions?</edit>