Choose a key ring about the size of a penny. You can also use a small rubber band for more flexibility.
Attach the key ring to the zipper pull of the pants by winding it through the hole at the end of the zipper pull.
Hook the key ring or rubber band over the pants button when the zipper is zipped up. This keeps the zipper pull in place and prevents the zipper from unzipping.