Get selected value in an IE8 compatible way.

Here is the basis of the change: http://stackoverflow.com/questions/1721656/unable-to-get-selected-value-from-list-box-in-ie-8