-
Anonymous
-
well implementing one is easy, sorry I forgot to elaborate.
I want it so that whatever is selected, will take on an id and can then be used in the document.
The only tutorials I can find (Java programmer, know only basic javascript) are for javascript menus where the selected entry takes you to a new url. -
function clickTest( selectObj,
//other info passing through
) {
var numSelected = selectObj.options[ selectObj.selectedIndex ].value
if ( numSelected == 1 ) {
//do this (you can create a var with a name using this info and call it elsewhere in the script outside of a function, but not in one)
} else if ( numSelected == 2 ) {
//do this instead
} else if ( numSelected == 3 ) {
//fuck all that; do this one
}
}




