The example of dramatic irony is: A wife cuts and sells her hair to buy a watch chain for her husband, who has sold his watch to buy combs for her hair.
In this situation, the audience understands the irony of the couple sacrificing their most valued possessions for one another, but the characters are unaware that their gifts will be useless, creating a sense of dramatic irony.