elect to (something)
To vote someone into a particular position or office. A noun or pronoun can be used between "elect" and "to." I had hoped to be elected to the student government, but a more popular boy beat me out.
elect someone to something
to select someone to be a member of something by ballot; to select someone to be an officer in something by ballot. We elected you to office, so do your job. Tom was elected to the congress.