freaksarise
05-12-2003, 07:01 PM
Hello everyone.
The following works as follows:
User clicks radio buttons. Value from radio buttons are "collected" from markPoint function OnClick.
function markPoint(pointValue) {
alert (pointValue)
}
I would like to test the value of "pointValue" so that the logic is like this:
If "pointValue" == "everyday" ...
If "pointValue" == "twice_week" ...
If "pointValue" == "once_week" ...
If "pointValue" == "never" ...
What is a quick way to do this?
Using "case"? A loop?
Thanks
FA
Sorry I know this is real simple stuff.
The following works as follows:
User clicks radio buttons. Value from radio buttons are "collected" from markPoint function OnClick.
function markPoint(pointValue) {
alert (pointValue)
}
I would like to test the value of "pointValue" so that the logic is like this:
If "pointValue" == "everyday" ...
If "pointValue" == "twice_week" ...
If "pointValue" == "once_week" ...
If "pointValue" == "never" ...
What is a quick way to do this?
Using "case"? A loop?
Thanks
FA
Sorry I know this is real simple stuff.