I'm trying to use Form.Element.EventObserver on a set of radio boxes
that have the same name like this:
All
Encrypted
Unencrypted
I resgister the call back like this:
new Form.Element.EventObserver($("rbEncryption"),
myCallBack.bindAsEventListener(..);
The problem is it only registers the call
That’s the only way I’ve been able to make it work too, but then it
leaves me the problem of unselecting the radio boxes manually, a task
made harder because it’s no longer an array. The only way I’ve been
able to make this work the way I wanted was to use an old style
onclick event which doesn’t
#x27;input[type="checkbox"]').each(function(elm){
> elm.checked = false;
> if (foo == bar) elm.checked = 'checked';
>
> });
>
> Walter
>
> On Mar 30, 2009, at 9:17 AM, simon.murgatr...@googlemail.com wrote:
>
>
>
>
>
> > That’s the only
Thats an idea - use a class as the selector. Maybe I can get that
working generically,
I will give it a try.
On Mar 30, 2:34 pm, Chris Sansom wrote:
> At 04:20 -0700 30/3/09, simon.murgatr...@googlemail.com wrote:
>
> >The problem is it only registers the call back on the first of
#x27;)
>
> will indeed return ALL the checkboxen in your form.
>
> $('theFieldsetId')...
> $('theListItemId')...
> $(''theParagraphId')...
> $('theLabelId')... (this one is even semantically correct!)
>
> Any of thes