^The details tend to vary for each election, so you'll have to wait about 9 months to get the proper information.
However, the main deal is that you buy AKB48's single containing the election ticket (which usually releases around May). The ticket will have a code that you can enter in a certain website. You select the girl you want to vote for, enter the code and press ok. That's pretty much it.