Programmatically set <Select> element w/ Vanilla JS



How do you set select value with vanilla JS for embedded form submissions? I’ve done this before in JQuery but can’t seem to get it to work with Vanilla JS… :frowning: Fwiw: creating a “prettier” faux dropdown and then passing that value the actual hidden select element for submission.


Hi @jasonbryant,

Just to make sure that we’re on the same page, are you using an embedded HubSpot form, or a custom HTML form that you’re then submitting to the forms API?