I have the following in the page
Apple Cars
Alternatively you can also accomplish this with getElementsByName
Apple Cars Honda Fiat Indigo
So in matching on the option value of "C" we could remove Cars from the list.
var selectobject = document.getElementsByName('val')[0]; for (var i=0; i