Etymology
Advertisement
jack-in-the-box (n.)
also jack-in-a-box, 1560s, a name for a sharp or cheat, "who deceived tradesmen by substituting empty boxes for others full of money" [Robert Nares, "A Glossary of Words, Phrases, Names, and Allusions," London, 1905]. See Jack + box (n.1). As a type of toy involving a figure on a spring inside a box, it is attested by 1702. Also it has been used variously to mean "peddler who sells wares from a temporary stall" (1690s), "an unborn child," a type of gambling game, a hermit crab, a large wooden male screw, the sacrament, and various mechanical devices.
Related entries & more 
Advertisement
Jack 

masc. proper name, attested by 1218, probably via Anglo-French Jake, Jaikes, from Old French Jacques (which was a diminutive of Latin Jacobus; see Jacob), but in English the name always has been regarded as a familiar form of John, and some have argued that it is a native formation. In Middle English spelled Jakke, Jacke, etc., and pronounced as two syllables ("Jackie").

In England, Jack became a generic name applied familiarly or contemptuously to anybody (especially a young man of the lower classes) from late 14c. Later used especially of sailors (1650s; Jack-tar is from 1781); Jack-ashore (adj.) "drinking and in high spirits, recklessly spending" (1875) also is an image from sailors (1840 as a book title). In U.S., as a generic name addressed to an unknown stranger, attested from 1889. Every man Jack "everyone" is from 1812. Also see jack (n.).

Used in male personifications from 15c.; first record of jack-of-all-trades "person handy at any kind of work or business" is from 1610s; Jack Frost is from 1826; Jack-nasty "a sneak or sloven" is from 1833 (Jack-nasty-face, a sea-term for a common sailor, is from 1788). Jack Sprat for a small, light man is from 1560s (his opposite was Jack Weight). Jack-pudding "comical clown, buffoon" is from 1640s. Jack-Spaniard is from 1703 as a Spaniard, 1833 as "a hornet" in the West Indies. Other personifications listed in Farmer & Henley include jack-snip "a botching tailor," Jack-in-office "overbearing petty official" (1680s), Jack-on-both-sides "a neutral," Jack-out-of-doors "a vagrant" (1630s), jack-sauce "impudent fellow" (1590s).

The U.S. plant jack-in-the-pulpit (Indian turnip) is attested by 1833. Jack the Ripper was active in London 1888. The Scottish form is Jock (compare jockey (n.)). Alliterative coupling of Jack and Jill is from 15c. (Iakke and Gylle, Ienken and Iulyan). Jack Ketch for "hangman, executioner" (1670s) is said to be from the name of a public executioner in the time of James II (compare Derrick); it also was used as a verb meaning "to hang."

Related entries & more 
jack (n.)
late 14c., jakke "a mechanical device," from the masc. name Jack. The proper name was used in Middle English for "any common fellow," and thereafter extended to various appliances which do the work of common servants (1570s). Also used generically of male animals (1620s, see jackass, jackdaw, etc.).

As a portable contrivance for raising weight by force from below, 1703. As the name of a device for pulling off boots from 1670s. The jack in a pack of playing cards (1670s) is in German Bauer "peasant." Slang meaning "money" is by 1890 (in earlier slang it meant "a small coin"). Jack-towel, one sewn together at the ends round a roller, is from 1795. The jack of Union Jack is a nautical term for "small flag at the bow of a ship" (1630s) and perhaps is from the word's secondary sense of "smaller than normal size."
Related entries & more 
jack (v.)
1860, jack up "hoist, raise, lift with a jack," American English, from jack (n.) in the appliance sense. Figurative sense "increase (prices, etc.)" is 1904, American English. Related: Jacked; jacking. Jack off (v.) "masturbate" is attested from 1916, probably from jack (n.) in the old slang sense of "(erect) penis."
Related entries & more 
box (v.1)
"to put into storage, place into a box," mid-15c., from box (n.1). Related: Boxed; boxing.
Related entries & more 
Advertisement
box (n.3)
genus of small evergreen trees, Old English, from Latin buxus, from Greek pyxos "box tree," which is of uncertain origin. Beekes suggests a loan-word from Italy, as that is where the tree is native. Compare box (n.1).
Related entries & more 
box (n.2)

"a blow," c. 1300, of uncertain origin, older than the verb, possibly related to Middle Dutch boke, Middle High German buc, and Danish bask, all meaning "a blow;" perhaps imitative; perhaps from some sense of box (n.1) or (v.2).

Related entries & more 
box (n.1)

"rectangular wooden container," usually with a lid, Old English box, also the name of a type of shrub, from Late Latin buxis, from Greek pyxis "boxwood," pyxion "writing table, box," made of boxwood, from pyxos "box tree," which is of uncertain origin. Beekes suggests a loan-word from Italy, as that is where the tree is native. Dutch bus, German Büchse "box; barrel of a gun," also are Latin loan-words.

Meaning "compartment at a theater" is from c. 1600 (box seat in the theatrical sense is by 1850). Meaning "pigeon-hole at a post office" is from 1832. Meaning "television" is from 1950 (earlier "gramophone player," 1924). Meaning "station of a player in baseball" is from 1881. Graphics sense "space enclosed within borders and rules" is from 1929. Slang meaning "vulva" is attested 17c., according to "Dictionary of American Slang;" modern use seems to date from c. World War II, perhaps originally Australian, on notion of "box of tricks." Box lunch (n.) attested from 1899. The box set "multiple-album, CD or cassette issue of the work of an artist" is attested by 1955. To think or act outside the box "contrary to convention" is attested by 1994.

Related entries & more 
box (v.2)
"to beat, thrash, strike with the fist or hand," late 14c., from box (n.2). Meaning "to fight with the fists" (intransitive), whether gloved or not, is from 1560s. Related: Boxed; boxing.
Related entries & more 
in (adj.)
"that is within, internal," 1590s, from in (adv.). Sense of "holding power" (the in party) first recorded c. 1600; that of "exclusive" (the in-crowd, an in-joke) is from 1907 (in-group); that of "stylish, fashionable" (the in thing) is from 1960.
Related entries & more