1. Janet's and David's wedding or
2. Janet and David's wedding
Both are correct Although the second construction is more common, not to say efficient.
3a. The dog's, cat's, pig's and rat's turnip.
3b. The dog, cat, pig and rat's turnip.
Try adding even more turnip-owners to 3a, gets cumbersome...