early 13c., smertli, "vigorously," from smart (adj.) + -ly (2). The meaning "handsomely" is by 1748. The earlier adverb was Old English smerte. Compare Dutch smartelijk, German schmerzlich.
Entries linking to smartly
smart adj.
Middle English smert, from late Old English smeart, in reference to hits, blows, etc., "stinging; causing a sharp pain," related to smeortan "be painful" (see smart (v.)). The adjective is not represented in the cognate languages.
Of speech or words, "harsh, injurious, unpleasant," c. 1300; thus "pert, impudent; on the impertinent side of witty" (by 1630s). In reference to persons, "quick, active, intelligent, clever," 1620s, perhaps from the notion of "cutting" wit, words, etc., or else "keen in bargaining."
From 1718 in cant as "fashionably elegant;" by 1798 as "trim in attire," "ascending from the kitchen to the drawing-room c. 1880" [Weekley]. For sense evolution, compare sharp (adj.); at one time or another smart also had the extended senses in sharp.
Attested from late 12c. as a surname, earlier as a component in them, including Christiana Smartknave (1279). In reference to devices, the sense of "behaving as though guided by intelligence" is attested by 1972 (smart bomb, also the computing smart terminal). The figurative smart cookie "clever, perceptive person" is from 1948.
-ly 2
common adverbial suffix, forming from adjectives adverbs signifying "in a manner denoted by" the adjective, Middle English, from Old English -lice, from Proto-Germanic *-liko- (cognates: Old Frisian -like, Old Saxon -liko, Dutch -lijk, Old High German -licho, German -lich, Old Norse -liga, Gothic -leiko); see -ly (1). Cognate with lich, and identical with like (adj.).
Weekley notes as "curious" that Germanic uses a word essentially meaning "body" for the adverbial formation, while Romanic uses one meaning "mind" (as in French constamment from Latin constanti mente). The modern English form emerged in late Middle English, probably from influence of Old Norse -liga.