Jump to content

Slect - Option - java


keepz
 Share

Recommended Posts

penso que tem qe ser feito em javascript, é a unica maneira q conheço, mas nao sei se em ava tambem da.

<script>
function changeLocation(menuObj)
{
   var i = menuObj.selectedIndex;

   if(i > 0)
   {
      window.location = menuObj.options[i].value;
   }
}
</script>

eu tenho isto so q esta funçao faz me refresh á pagina toda, e eu qero q fiqe o valor selecionado da option mas qero q apareça uma pagina numa div ou numa iframe com outro select.

nao sei se me fiz entender

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.