Hi.
I found this onclick function that I want to use.
I want to be able to pass a variable
in the onclick='CBClicked(this, myvar); into the function.
and modify it so the alert box shows the input variable?
thanks
I found this onclick function that I want to use.
I want to be able to pass a variable
in the onclick='CBClicked(this, myvar); into the function.
and modify it so the alert box shows the input variable?
thanks
Code:
onclick='CBClicked(this);
function CBClicked (theBox){
if (!theBox.checked)
alert ("Unchecked.");
else
alert ("Checked.");
}