We investigate the glass transition behavior of ion-containing polymers via molecular dynamics simulations, revealing its coupling with ionic correlations as well as variations of the glass transition temperature in bulk and thin films.