My nieces dog was behaving just the same way !!!
That doggie needs training ! Everytime she does it , do one step backwards and say loud and clear : NO ! NO JUMPING !!!!!
And np petting when she does not listen , petting if she does !!
Success !!!