If you're using mason jars with tops that separate into a circular rim and a flat lid, glue those together ... from kitchen ...
This is why this type of jar is so popular for food storage and canning ... Carefully remove the lid from the water, lay it flat with the painted side up, and allow it to dry completely.