Help with dropdown jump list in IE

Hi guys,

I am using the folloeing dropdown list code on my site and have found that it doesnt work properly in IE. Sometimes it works… Sometimes it doesnt ‘jump to page’


<script type="text/javascript">
function jump(obj){
if(obj.selectedIndex != 0){
window.location=obj.options[obj.selectedIndex].value;
}else{
alert('Please Select!!!');
}
}
</script>


 <form name="form1">
       <select name="jump1" OnChange="location.href=form1.jump1.options[selectedIndex].value"> 
    <option value="aaaa">somthing</option>

Can anyone please help?

Time to show a URL or complete test page.

Your <select> has an inline event handler so what is the relevance of the jump function?

<select onchange = "if( this.selectedIndex > 0 ){ location.href = this.value; }"> 

Alternatively


function jump( box )
{
 if( box.selectedIndex > 0 )
  location.href = box.value;
}

.....

<select onchange = "jump( this )"> 

a little over my head but… I tried your code and it didnt jump at all :frowning: