But you do use the WIX Stores Product Page? If so, you cannot have access to elements of that page, as I am aware of.
As I understood, you want to have access to the DROPDOWN element on the WIX Store Product Page and I think this is impossible.
If you want, you could create a custom product page, then you would have access to the product that was selected. Just like this function that creates the options of the dropdown to select the product:
function createOptionsForDropdown(options, key) {
const optionsForDropdown = options
.filter(option => option.inStock)
.map(option => {
return {
label: option[key].toString().toUpperCase(),
value: option[key].toString().toUpperCase(),
inStock: option.inStock.toString().toUpperCase()
}
})
return optionsForDropdown
}