Training other people, such as visitors or strangers, to ask the dog to sit before giving attention can help reinforce good behavior and prevent jumping. This technique can be used both at home and during walks to ensure consistent training.