David "Davy" Crockett (August 17, 1786 - March 6, 1836) was a 19th-century American folk hero, frontiersman, soldier, and politician. He is commonly referred to in popular culture by the epithet "King of the Wild Frontier". He represented Tennessee in the U.S. House of Representatives and served in the Texas Revolution. Crockett grew up in East Tennessee, where he gained a reputation for hunting and storytelling.
United States House of Representatives
On October 25, 1824, Crockett notified his constituents of his intention to run in the 1825 election for a seat in the U.S. House of Representatives. He lost that election to incumbent Adam Rankin Alexander. A chance meeting in 1826 gained him the encouragement of Memphis mayor Marcus Brutus Winchester to try again to win a seat in Congress. The Jackson Gazette published a letter from Crockett on September 15, 1826 announcing his intention of again challenging Rankin, and stating his opposition to the policies of President John Quincy Adams and Secretary of State Henry Clay and to Rankin's position on the cotton tariff. Militia veteran William Arnold also entered the race, and Crockett easily defeated both political opponents for the 1827-29 term. He arrived in Washington D.C. and took up residence at Mrs. Ball's Boarding House, where a number of other legislators lived when Congress was in session. Jackson was elected as President in 1828. Crockett continued his legislative focus on settlers getting a fair deal for land titles, offering H.R. 27 amendment to a bill sponsored by James K. Polk.  Crockett was re-elected for the 1829-31 session, once again defeating Adam Rankin Alexander. He introduced H.R. 185 amendment to the land bill on January 29, 1830, but it was defeated on May 3. On February 25, 1830, he introduced a resolution to abolish the United States Military Academy at West Point, New York because he felt that it was public money going to benefit the sons of wealthy men. He spoke out against Congress giving $100,000 to the widow of Stephen Decatur, citing that Congress was not empowered to do that. He opposed Jackson's 1830 Indian Removal Act and was the only member of the Tennessee delegation to vote against it. Cherokee chief John Ross sent him a letter on January 13, 1831 expressing his thanks for Crockett's vote. His vote was not popular with his own district, and he was defeated in the 1831 election by William Fitzgerald.  Crockett ran against Fitzgerald again in the 1833 election and was returned to Congress, serving until 1835. On January 2, 1834, he introduced the land title resolution H.R. 126, but it never made it as far as being debated on the House floor. He was defeated for re-election in the August 1835 election by Adam Huntsman. During his last term in Congress, he collaborated with Kentucky Congressman Thomas Chilton to write his autobiography, which was published by E. L. Carey and A. Hart in 1834 as A Narrative of the Life of David Crockett, Written by Himself, and he went east to promote the book. In 1836, newspapers published the now-famous quotation attributed to Crockett upon his return to his home state:  I told the people of my district that I would serve them as faithfully as I had done; but if not, they might go to hell, and I would go to Texas.

Q: what position did crockett hold
A: a seat in the U.S. House of Representatives.
when was he elected
Crockett easily defeated both political opponents for the 1827-29 term.
Crockett easily defeated both political opponents for the 1827-29 term.