B
barbaz
Hi, sorry for the stupid question.
I use this function to cause a select to choose an URL to reach:
function getURL()
{
box = document.forms[0].book_select;
destination = box.options[box.selectedIndex].value;
if (destination) location.href = destination;
}
I call it this way:
<select onChange='getURL()'>
passing an URL as a 'value'.
Once selected, js directly takes me to the desired page.
Now, I need to do a slightly different thing.
In the same form, before the select, I've 7 radio buttons, of course
with their specific 'value's.
This value should be in some way added as a GET parameter to the the URL
contained in the select value.
So, if in the select value we have an option with:
'http://www.yahoo.com/index.php?par1=3' I must append &par2=radioValue
Is there a way to do this? How? Thanks!
I use this function to cause a select to choose an URL to reach:
function getURL()
{
box = document.forms[0].book_select;
destination = box.options[box.selectedIndex].value;
if (destination) location.href = destination;
}
I call it this way:
<select onChange='getURL()'>
passing an URL as a 'value'.
Once selected, js directly takes me to the desired page.
Now, I need to do a slightly different thing.
In the same form, before the select, I've 7 radio buttons, of course
with their specific 'value's.
This value should be in some way added as a GET parameter to the the URL
contained in the select value.
So, if in the select value we have an option with:
'http://www.yahoo.com/index.php?par1=3' I must append &par2=radioValue
Is there a way to do this? How? Thanks!