hey there, im making a wk toto for my friends, I wanna make the following:
if score a1 > a2
set value(land1)...
var eindstanda1 = document.form1.textfield10.value;
var eindstanda2 = document.form1.textfield29.value;
var a1 = document.form1.select1.value;
var a2 = document.form1.select2.value;
if(eindstanda1 >= eindstanda2)
{
document.form1.s49.value = a1;
}
(s49) is the textfield where the country name comes.
In Firefox and Safari this works perfectly fine, in IE it doesnt, but if i replace a1 with a String it does. For example: document.form1.s49.value = "KUT";
I call the function with an onchange="" btw.
PS if i alert the value of a1 it alerts empty. while in both other explorers its alerts just fine
if score a1 > a2
set value(land1)...
var eindstanda1 = document.form1.textfield10.value;
var eindstanda2 = document.form1.textfield29.value;
var a1 = document.form1.select1.value;
var a2 = document.form1.select2.value;
if(eindstanda1 >= eindstanda2)
{
document.form1.s49.value = a1;
}
(s49) is the textfield where the country name comes.
In Firefox and Safari this works perfectly fine, in IE it doesnt, but if i replace a1 with a String it does. For example: document.form1.s49.value = "KUT";
I call the function with an onchange="" btw.
PS if i alert the value of a1 it alerts empty. while in both other explorers its alerts just fine