Hi All,
I have been combing the web for an answer to this one, but haven't been able to find it. I have a simple HTML form with 2 radio buttons on it. The button(s) when selected, should open a page on another website in a new browser window. Both links have a query string attached so the first drop down is preselected (so far so good, these both work). Both links also need to be appended with a second string of course using an "&", that will preselect the correct option in the next drop down field (option name=option value). I have checked the source code of the page to determine what the second value should be based on, but the appended query will not populate that second drop down using that information.
Any idea what I need to add to get the second value to populate?
function whichpage(form){
var page = form.elements.page, i = page.length;
while (--i > -1){
if(page[i].checked){
return page[i].value;
}
}
}
<form class="form" name="form" method="get" onSubmit="window.open(whichpage(this), '_blank'); return false;">
Any help would be appreciated.