Good markup helps simplify the code. What does your markup look like? If the element with the children had a class of "comment-block" for example you could use something like .nextAll(".comment-block") rather than the repeated .next() calls.
Leave a comment on dave.methvin's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic