$("#mySelectID option").toArray().map(p=>p.value)
// This will select all of the text in the textarea or input called element element.select();
x.options.length