Position of Adverb/Adjective

HI

Which one is correct

" They have elected him as unanimous leader in the Party "

or
" they have unanimously elected him as leader in the Party"

Could you please tell me the difference in the above sentences ?

Regards
Pavan

.
Use the second one: the election is unanimous, not the leader.
.