get all text options of select javascript code example Example: javascript get all options from select x.options.length