In the 9th century, the territory of Jelka became part of the Great Moravia, in 11th century part of Kingdom of Hungary. In historical records the village was first mentioned in 1237. Before the establishment of independent Czechoslovakia in 1918, it was part of Pozsony County. After the Austro-Hungarian army disintegrated in November 1918, Czechoslovak troops entered the area following cease-fire agreements with western powers.
Later, newly created independent Hungary acknowledged full Czechoslovak sovereignty in their borders internationally by the Treaty of Trianon, a part of Hungary and Czechoslovakia signed also by France, Britain and USA. Hungarians respected their word until 1938, when, as agreed with Hitler, Jelka once more became part of Miklós Horthy's Hungary through the First Vienna Award. Hungary managed to keep this award until 1945 when Czechoslovak administration restored.