Set select option 'selected', by value
To select an option with value 'val2':
There's an easier way that doesn't require you to go into the options tag:
Check out the this jQuery method.
NOTE: The above code does not trigger the change event. You need to call it like this for full compatibility: