o Option 1a o Option 2b
[] thing1a [] thing1b
[] thing2a [] thing1b
[] thing3a [] thing1b
How do I make:
Option 2b & sub-choices ALL deselected, and Option 1a selected, when one
of thing[a] is selected?
And how do I make all [a] checkboxes selected, when I select Option 1a?
And vice-versa, of course.
Any help would be appreciated.
I tried: ( when selecting thing1a)
this.form.option2b.checked == false
this.form.thing1b.checked == false
{etc.}
this.form.option1a.checked == true
but it doesn't work: not a number.
You may think: why? Well, I'm trying to make a form which has just about
all things you can imagine: custom feedback, calculations (tax, mail),
(the above...), new windows (with different properties), and that stuff.
And some entry-checking.
If I can get it to work, it can be a reference for those girls & guys
just starting with JS. And for me, of course.
Tweetie <www.worldonline.nl/~kroding>
Hiroshima '45
Tsjernobyl '86
Windows '95
Did you try it with only one = ?
== compares the two values, = sets the left to the right.
Dan Robino
http://www.ntplx.net/~drobino
>Suppose I have the following setup
>o Option 1a o Option 2b
> [] thing1a [] thing1b
> [] thing2a [] thing1b
> [] thing3a [] thing1b
>How do I make:
>Option 2b & sub-choices ALL deselected, and Option 1a selected, when one
>of thing[a] is selected?
>And how do I make all [a] checkboxes selected, when I select Option 1a?
>And vice-versa, of course.
>Any help would be appreciated.
>I tried: ( when selecting thing1a)
>this.form.option2b.checked == false
>this.form.thing1b.checked == false
>{etc.}
>this.form.option1a.checked == true
>but it doesn't work: not a number.
>You may think: why? Well, I'm trying to make a form which has just about
>all things you can imagine: custom feedback, calculations (tax, mail),
>(the above...), new windows (with different properties), and that stuff.
>And some entry-checking.
>If I can get it to work, it can be a reference for those girls & guys
>just starting with JS. And for me, of course.
I have the same problem, I tried the .click() method and the .checked
property, but the first didn't do anything, and the last just defaults
to the last (or first, with NS 2.x) in the button array. Keep me
informed if you find the solution, i'll do the same...
Arno
_________________________________________________________________________
| Arno van Boven <arn...@dataweb.nl>
| http://www.dataweb.nl/~arnovb
> Suppose I have the following setup
[cut]
> I tried: ( when selecting thing1a)
>
> this.form.option2b.checked == false
> this.form.thing1b.checked == false
> {etc.}
> this.form.option1a.checked == true
>
> but it doesn't work: not a number.
[cut]
I tried the Netscape site, and tried
this.form.radio[0].checked == 0
and:
this.form.radio[0].checked == false
No luck. Who can help me out?