Member Avatar

I have assigned the value whether the check box is ticked or not to a vairable.I want to pass the value to a function. how do I do that ? if (checkbox1.checked==true) { value1 = "I am here" } if (checkbox2.checked==true) { value2="I am there" } value3 = value1 + value2 function (value3) { ..... } thee b problem is value 1 and value 2 are out of scope for value 3 ?what should I do ?

Member Avatar
+0 forum 2

The End.