Well, you already have an onclick there on each radio button, so what do YOU think the code in the runme function might look like?
I have to say that s switch is ALMOST the worst possible choice for this. I have to assume it is yet another idiotic homework assignment given you by yet another incompetent instructor. No?
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Well, you already have an onclick there on each radio button, so what do YOU think the code in the runme function might look like?
I have to say that s switch is ALMOST the worst possible choice for this. I have to assume it is yet another idiotic homework assignment given you by yet another incompetent instructor. No?
Thats what i thought, I had already done this very easily with an if statement, but, yes sadly less funding leads to the employment of unfit instructors. There are several students who seem to know more than the instructor lol!
and then your runme will have to do something like:
Code:
function runme( rb )
{
var rbValue = rb.value;
var message;
switch( rbValue )
{
"sunday": message = "You chose Sunday"; break;
... etc. ...
}
... put message into text field ...
}
It's so stupid. A useless usage of switch. But if that's what doofus wants, that's what doofus gets.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Is there any other subject in your school - law, medicine, math, French, whatever, where the teachers are incompetent and the students are more knowledgeable? Why is it imagined that any doofus (presumany a failure in some other field) can teach computer programming?
__________________
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Is there any other subject in your school - law, medicine, math, French, whatever, where the teachers are incompetent and the students are more knowledgeable? Why is it imagined that any doofus (presumany a failure in some other field) can teach computer programming?
Well i haven't noticed any other instructors as terrible as this guy, but then again I haven't been attending long enough to notice. All my other instructors are, i don't want to say great, but their not terrible.