Your method works, but to make it easier to keep the food below the brine, I put a tiny bowl (like you'd use for spices when prepping) inside the mason jar to push things down while still allowing it to bubble. Cover with a piece of cheesecloth and a rubber band.
Food below the brine is key, it will mold otherwise (as I've learned the hard way...).