I can't find a satisfactory reference but I have heard that, in the 18th century, sailors would have been wearing trousers while landlubbers would have been wearing breeches.
Steve Gardham, I think you are confusing Jacky Tar with Jack's The Lad (Jack Off the Green, College Hp).