when i use the following function, it will only work in Internet explorer and not Firefox-
function myfunc(){
a=document.select1;
b=a.options[a.selectedIndex].value;
alert ("hello")
}
The function stops and does not display the alert.
it works in both browsers if i put the selectbox 'select1' in a form, but i don't want to do this-
this works-
function myfunc(){
a=document.form1.select1;
b=a.options[a.selectedIndex].value;
alert ("hello")
}
Is there a work around so i do not have to use a form ?
Thank you.
function myfunc(){
a=document.select1;
b=a.options[a.selectedIndex].value;
alert ("hello")
}
The function stops and does not display the alert.
it works in both browsers if i put the selectbox 'select1' in a form, but i don't want to do this-
this works-
function myfunc(){
a=document.form1.select1;
b=a.options[a.selectedIndex].value;
alert ("hello")
}
Is there a work around so i do not have to use a form ?
Thank you.