I need to dynamically select an option from a dropdown on page load. The dropdown is created with Vue.js I am using jQuery to dynamically "click" the dropdown on page load and that is working. However, the content that usually populates below after click is not working. I know the content is also being pulled with Vue but I do not know much about Vue. Is there a way to have an option of the select dynamically selected on page load AND have the content below shown as well.
Here's what I've done in jQuery that is getting the option to be selected on load.
$('select option[value="3"]').attr('selected', true);
Update: I think I've figured out why it's not working but still don't know how to get it to work. Using .val() will not work. The options I'm trying to pre-select won't exist yet, because the request is not fired until the control is opened and/or the user begins searching.