Retrieving value and using it to select option