You need to also set a value for the checkbox also.
el.down('input').checked = 'checked';
el.down('input').value = '1';
-----Original Message-----
From: smartcookie [mailto:[email protected]]
Sent: Tuesday, December 15, 2009 12:18 PM
To: Prototype & script.aculo.us
Subject: [Proto-Scripty] Issues selecting checkboxes in FF
Hey there:
Does anyone know a good way to programmably "select" or "click" on a
checkbox input in FF?
I have tried :
el.down('input').checked = 'checked';
and
el.down('input').onclick();
In the first code, I can see the checkboxes being checked, but when I
submit, my error validation alerts that nothing is selected...
Does anyone know another method..
Thanks
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to
[email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.