Javascript help - form script
Posted: Sun Oct 04, 2009 6:50 pm
Hi there,
I got this code for a form to update the variable 'num' without reloading the page:Now, I want another select field, and when you select something in one of the fields, it should get values from both fields. index.php?num=XX&page=XX.
I got this code for a form to update the variable 'num' without reloading the page:
Code: Select all
var choose = document.getElementById("demovis");
choose.onchange = function() {
var num = this.options[this.selectedIndex];
if(num.value != "blank" ){
window.location = "index.php?num="+num.value;
}
}