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:dpell.h...@gmail.com] 
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
prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to
prototype-scriptaculous+unsubscr...@googlegroups.com.
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 prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.


Reply via email to