You can pick the current option of any select element:
option
select
mySelect.options[mySelect.selectedIndex]
Can I do the same wit
Lets say you have data attributes in the above example like this,
and you want to obtain the data-company attribute of the selected item,
using the loop above
for (var i=0;i