i have this code:
<SELECT onChange="chData(this,this.value)">
<OPTION VALUE="_MIPS-LRSYSCPU">MIPS
<OPTION VALUE="_XXCEC-LRSYSCPU">% CEC
<OPTION VALUE="_nIFL-LRSYSCPU">nIFL
</SELECT>
and I need to take with javascript all the value (not the text) of the option value that I have in the HTML PAGE. The problem is that In know that the value contains the word "-LRSYSCPU", but I don't know the previous part (Example _MIPS). the second problem is that I don't have the ID in the select so how can I take the option value? I have seen that people use this code:
var e = document.getElementById("elementId");
var value = e.options[e.selectedIndex].value;
var text = e.options[e.selectedIndex].text;
but I don't have the id so i dont know how to proceed..
I need to create an array with this three values : _MIPS-LRSYSCPU, _XXCEC-LRSYSCPU and _nIFL-LRSYSCPU. Thanks