Hi,
I've tried googling, I guess i'm using the wrong search terms... anyhow.
I want to make a var = the value between the option tag, not the value attribute of the option tag.
so normally I would use...
to get the value selected from a select list.
what would I use to get the text content displayed in the drop down for the selected item?
thanks
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
I've tried googling, I guess i'm using the wrong search terms... anyhow.
I want to make a var = the value between the option tag, not the value attribute of the option tag.
so normally I would use...
Code:
var type = document.getElementById('type').value;
what would I use to get the text content displayed in the drop down for the selected item?
thanks
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!