// Using id const $option = $select.querySelector('#myId'); // Using classname const $option = $select.querySelector('#mySelect .myId'); // Using data-attribute const $option = $select.querySelector('#mySelect [data-selected="myElement"]');