Jakarta Governor Joko Widodo. Pic: AP.

JAKARTA, Indonesia (AP) — The official count has confirmed the victory of Indonesia’s biggest opposition party in last month’s legislative elections, giving its star candidate a boost ahead of an upcoming presidential race.

Chairman of Electoral Commission Husni Kamil Manik announced Friday that the Indonesian Democratic Party of Struggle of former President Megawati Sukarnoputri garnered nearly 19 percent of the vote in the April 9 election for the 560-seat House of Representatives.

That gives momentum to Jakarta Gov. Joko Widodo, who was picked by Megawati to run in the July 9 presidential election.

Trailing second was Golkar Party with nearly 15 percent followed by the Great Indonesia Movement Party, which pulled in almost 12 percent. The ruling Democratic Party of President Susilo Bambang Yudhoyono garnered 10 percent to place fourth.