I have a simple drop down box below:
<FORM name="guideform">
<SELECT name="guidelinks">
<OPTION value="jex7.htm">My Cool Page
</SELECT>
</FORM>
In my JavaScript I want to grab the name "My Cool Page" however Javascript can only grab "jex7.htm", anyone how?
<script language="javascript">
function test(){
index = document.guideform.guidelinks.selectedIndex
name= document.guideform.guidelinks.options[index].value
alert(name)
}
</script>
<FORM name="guideform">
<SELECT name="guidelinks">
<OPTION value="jex7.htm">My Cool Page
</SELECT>
</FORM>
In my JavaScript I want to grab the name "My Cool Page" however Javascript can only grab "jex7.htm", anyone how?
<script language="javascript">
function test(){
index = document.guideform.guidelinks.selectedIndex
name= document.guideform.guidelinks.options[index].value
alert(name)
}
</script>