Changed to .attr() for setting options selected.