By playing some simple games like fetch with your dog, you can kill 2 birds with one stone. First is that the actual playing of the game will surely tire them out so much that they won’t have the energy to jump the fence. Second is that you are associating the fun of the game with the yard. If they have fond memories of the yard they will be less likely to try and get out.
Also, it's your job to never let anyone else allow your puppy to jump up on them! They will say, "It's OK, she's just a puppy, I don't mind if she jumps on me". You must rush in and pull the puppy down immediately, put your pup in a sit, praise the puppy then scold the person ! Continue to hold the puppy in a sit and let the person greet the pup. Explain to them they can never allow the puppy to jump on them - the puppy must sit to be greeted. To stop the jumping up behavior in pups, I do as much people training as puppy training!
This week’s episode is on how to teach your dog to stop jumping up and instead greet people politely. Jack writes that he and his wife have taught their young dog that he gets attention only when all four paws are on the floor. But the dog jumps up on guests. His exuberant greetings are hard on children and old people. Today I’ll explain how to teach your dog that the best way to get people to say hi is just to sit there and not jump up.