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.
When your dog has all four paws on the floor, give him attention and praise. If he jumps up at any point, freeze with your arms folded on your chest until he calms down. Instruct guests and all members of your household to consistently ignore jumping. If you have visitors who ignore the no-jumping rules, keep your dog on leash during the visit and gently remove him if he jumps. For anything your dog gets in life, whether it's your attention or a meal, only give the reward when all four paws are on the floor. Jumping up should end all attention and rewards, while remaining fixed on the ground garners all the pleasurable reinforcement a dog desires — treats, petting, play.
A relatively new invention that will definitely solve this problem is the no jump harness. It works by restricting the movement of the dog’s hind legs so that it can’t jump at all. This should not be a permanent solution but rather something that can be effectively used during training. It should not only stop them from jumping chain link fences, but also from jumping on people and furniture.
This article was co-authored by Pippa Elliott, MRCVS. Dr. Elliott, BVMS, MRCVS is a veterinarian with over 30 years of experience in veterinary surgery and companion animal practice. She graduated from the University of Glasgow in 1987 with a degree in veterinary medicine and surgery. She has worked at the same animal clinic in her hometown for over 20 years.
Make sure other family members and visitors understand this command, as well. It is crucial that your dog understand that all family and visitors are above his rank in the pack. Otherwise, he will lash out and try to assert himself on everyone. While using the Off command may not be appreciated by most visitors, but it is more important that a dog has a good greeting manner with all people. A little effort on everyone's side makes your dog disciplined and docile.
When a dog jumps on a human of its own free will, it is not "greeting" the human, it is asserting its dominance over the human; it is the dog communicating that it is alpha and/or wishes to own/control the human. A subordinate would never dream of running over and jumping on the alpha dog of the pack. Space is respect and lower members of the pack respect the higher members. If your dog jumps on humans, it does not respect them. Note: when a young puppy jumps on humans it is sometimes its attempt to reach one's face. Puppies need to be taught not to jump up on humans as this behavior will manifest into other meanings as the puppy grows up into an adult dog.