I would tell my dogs to sit when I was going to put their leashes on; Otis would sit very nicely and it was easy to put on the leash. Kieran, on the other hand, used to get excited and jump on me. As soon as she started to jump, she was told to sit and I turned my back on her and eventually, she calmed down and I could put the leash on. It took awhile, and now, six years later, she sometimes still tries to jump - I don't say anything, I just turn my back and she sits politely so I can leash her up.