Skip to content Skip to sidebar Skip to footer

Set Selected Option Of Select Box

I want to set a option that was selected previously to be displayed on page load. I tried it with the following code: $('#gate').val('Gateway 2'); with