This is one of the techniques I use on puppies or adults to stop jumping. When training, like everything else you must be consistent. Don’t give attention when they jump because you are reinforcing the behaviour. Tell your friends and family to do the same. Everyone has to be on board for the well being of your pup.
source
Puppy