niisa
July 23rd, 2002, 02:37 AM
What is wrong with this code...
I am using combobox but when I change selection it does not chnage to degree=5 or 6 or 7, which means my var direction does not change to southwest.
function getResults() {
degree = combo_box.getSelectedItem().data;
selectedItem = combo_box.getSelectedIndex();
if (degree=1 or 2 or 3) {
direction = "south";
} else if (degree=5 or 6 or 7) {
direction = "southwest";
}
}
Help!
I am using combobox but when I change selection it does not chnage to degree=5 or 6 or 7, which means my var direction does not change to southwest.
function getResults() {
degree = combo_box.getSelectedItem().data;
selectedItem = combo_box.getSelectedIndex();
if (degree=1 or 2 or 3) {
direction = "south";
} else if (degree=5 or 6 or 7) {
direction = "southwest";
}
}
Help!