This is strange - I must be missing something! I have this simple js thing that goes like this;
<select onchange='my_function(this.options[this.selectedIndex].value),\"my_text\"'>
and the JS is simply;
function my_function(selected, text) {
var link="file.php?var1="+selected+"&var2="+text;
document.write(link);
}
But I keep getting link=file.php?var1=selected&var2=undefined
I have an almost identical function which works fine!