for each option in select js code example Example: javascript get all options from select x.options.length