Click optionbox

<select id="owned_user_list" class="owned_user_list" url="/account/switch">

    <option value="@followbacklist3"></option>
    <option selected="selected" value="@teamfollowbak59"></option>
    <option value="Add_new"></option>

</select>

I need to click the next option (@followbacklist3) but how? can somebdoy help please

Hi,

You can trigger the select element’s change event, or you could set its selected index.

Here’s how to do the former:

var sel = document.getElementById("owned_user_list");
    
// Attach event handler
sel.onchange = function(){
    alert("I changed");
}

// Works in IE9+
var event = document.createEvent('HTMLEvents');
event.initEvent('change', true, false);
sel.dispatchEvent(event);

Fiddle