A dangling modifier is a type of a modifier which is placed incorrectly or the noun it is supposed to modify isn't clearly stated in the sentence.
Having this in mind, the sentence which contains a dangling modifier is A. Playing with the children, it was obvious they had a good time.
It should be rewritten somehow to say: It was obvious they had a good time playing with the children.