First, please let me apologize for choosing "Programmer" to describe myself -- it seemed closest of the available choices, but I am nobody's idea of a programmer.
Second, please let me apologize for the elementary tone and question, but I've searched all over for the answer to this, with no luck. But I'm positive it can be done -- my research has shown me that much.
It should be fairly simple, for a JavaScript guru, that is . . . .
Here's a chance to (1) show off how much you know, (2) help out a newbie who at least has the grace and humility to acknowledge that he's a newbie, and (3) make the world safe for democracy, all in one fell swoop. From poking around in here, it looks like there are quite a few knowledgeable people, so I have faith that my problem will be cheerfully solved about 1 minute after I hit the "Submit Post" button. Extra karma points go out to the first person to solve it (karma points are what I can offer in lieu of cash).
Problem:
I have a form with one set of four radio buttons and one set of 11 checkboxes. It should operate such that if the user checks the first radio button, the group of checkboxes shows one subset checked, and if the user checks another radio button, a different subset of checkboxes is checked, and so on.
The code should, ideally, be alterable so that the exact subset of checkboxes to be checked by clicking a particular radio button is easily changeable. That is, if management decides this week that clicking radio button #2 should produce checked checkboxes #1, #4, and #9, but next week they decide that clicking radio button #2 should produce checked checkboxes #1, #4, #9, AND #10, it shouldn't be a problem to edit the code to bring this about. I would also want to be able to add and delete checkboxes from the set.
The term subset, as used above, should be taken to mean "any one, any group, or all of the available checkboxes."
I bow before the masters, and leave you to it. Thanks very much for your help.
John Herring
jhherring@yahoo.com
Second, please let me apologize for the elementary tone and question, but I've searched all over for the answer to this, with no luck. But I'm positive it can be done -- my research has shown me that much.
It should be fairly simple, for a JavaScript guru, that is . . . .
Here's a chance to (1) show off how much you know, (2) help out a newbie who at least has the grace and humility to acknowledge that he's a newbie, and (3) make the world safe for democracy, all in one fell swoop. From poking around in here, it looks like there are quite a few knowledgeable people, so I have faith that my problem will be cheerfully solved about 1 minute after I hit the "Submit Post" button. Extra karma points go out to the first person to solve it (karma points are what I can offer in lieu of cash).
Problem:
I have a form with one set of four radio buttons and one set of 11 checkboxes. It should operate such that if the user checks the first radio button, the group of checkboxes shows one subset checked, and if the user checks another radio button, a different subset of checkboxes is checked, and so on.
The code should, ideally, be alterable so that the exact subset of checkboxes to be checked by clicking a particular radio button is easily changeable. That is, if management decides this week that clicking radio button #2 should produce checked checkboxes #1, #4, and #9, but next week they decide that clicking radio button #2 should produce checked checkboxes #1, #4, #9, AND #10, it shouldn't be a problem to edit the code to bring this about. I would also want to be able to add and delete checkboxes from the set.
The term subset, as used above, should be taken to mean "any one, any group, or all of the available checkboxes."
I bow before the masters, and leave you to it. Thanks very much for your help.
John Herring
jhherring@yahoo.com