FIX select option selection by using val instead of selected attribute.