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. 
To say hello, of course. Puppies are social creatures and happy and excited to greet just about anyone! Jumping, leaping and bouncing are ways your dog shows affection and receives attention. When a puppy is very young, we usually sit on the floor, let them wiggle into our laps and allow them to lick and nuzzle up close to our face. This is OK because we are down at their level.
Jumping up seems cute when your puppy is a little guy, but when he grows into an adolescent, jumping on people can become more than rude. These juvenile delinquent dogs haven’t learned how to control their excitement and can bruise, scratch or knockdown owners when they launch themselves and plow into you with their paws and claws. With small dogs and young pups, these tips to stop jumping up can work.
Our inconsistency perpetuates the problem. Some of the time we tolerate the jumping and ignore it. Other times we reward the behavior by exchanging enthusiastic greetings. But when we're dressed up and the puppy's paws are muddy, it's a different story. Reprimanding the puppy for jumping up usually does not work. Either the puppy misunderstands the reprimand as praise or he gets even more excited and the jumping gets worse. If the reprimand is severe enough, the puppy may stop jumping at that moment but it doesn't solve the problem altogether; and it certainly is not a very nice thing to do. It's very similar to a person approaching you with a big smile, arm extended to exchange a hand-shake and you bopping the person in the nose. Even if your puppy learns that jumping up on you is not a good idea, he will usually get away with jumping up on everyone else.
However, when we are standing or sitting in a chair and they come bounding over to greet us, jumping up on us and trying to reach our face, we must not bend over and exchange hugs and kisses. If we do we are training and rewarding the puppy for jumping up. Eventually, most of us decide we no longer like our puppy jumping up to say hello - usually when the puppy gets bigger and more rambunctious. What used to be cute is now obnoxious and even dangerous if the puppy is jumping up on children or the elderly.

Many puppies don’t know their strength. When they jump up and you wave your arms and try to push them off, they may think it’s a game and grabs and bite harder. Tell them it hurts the same way another puppy would, with a YELP! Lay it on thick, overact and cry and sob like the pup has done major damage. Some tough dogs get the message using this. For the out-of-control grabby, ambush type of dog play, give him a taste of his own medicine and SCREAM (very loud but very short), and fall over “dead.” Don’t move and don’t say anything. Play dead for at least 15 to 20 seconds. The shock value may be enough to send a permanent message that such games stop all interaction, plus they hurt you—and playing dogs aren’t interested in hurting you and won’t want you to cry.

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.
×