Get selected value in an IE8 compatible way.