You shouldn’t stop this type of jumping. You need to diagnose your dog's issue and remedy that. If your dog is just stressed being in a new situation, you should calmly get them off of you, offer them a treat to calm them down, and have them sit politely beside you until their stress level has subsided (or take them somewhere else so that they can calm down if it is taking a while for them to calm down.) But most of all, please do not just ignore this behavior change. 

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.
With a tie-down, you simply attach your dragline to a fixed object like a fence, stair rail or another immovable object like an eye-bolt in the wall. This exercise uses the same principles as teaching the “wait” command, only instead of closing a door or gate, the pup is confined by the leash. That keeps you safe from mouthing and claws and prevents the pup from jumping up and grabbing. Practice puppy sits and downs while you stay out of range. Only reward the puppy with contact from you when he stays calm with all four feet on the floor.
Dogs with poor social skills oftentimes just don’t know better. They will bounce off of everything, jump on everyone, run around like crazy, and investigate everything they can get their paws, snout, and eyes on! These dogs can come from any background, whether a rescue or puppy from a great breeder; if they haven’t had experience in new places and new situations, this can be how they respond. 
Paying attention to a dog only when all four paws are on the floor can work well, if jumping isn’t well entrenched and if everybody who deals with the dog follows the rules. Unfortunately, much of humanity will get busy undermining you. “I don’t mind your puppy jumping up,” they say, while you tear your hair out. Or they get all disciplinarian, maybe kneeing the dog in the chest. That is not only mean but counterproductive, because dogs often respond by trying to appease. Since humans are usually taller than dogs, reaching our muzzles to lick them involves jumping up.
×