[Seaside] making a read-only checkbox
nick.ager at gmail.com
Mon Nov 15 10:51:18 UTC 2010
I have a form with a bunch of checkboxes. I want some of them to be disabled
> depending on wether some other are checked or not.
> I just can't figure out how to make a read-only checkbox (so that it would
> still show but would be greyed out).
with: 'a disabled checkbox'
#disabled: works for all form elements.
> Is there such a thing in seaside (optimally with jquery so they can be
> updated on the fly when the user check/uncheck a box).
with: 'a disabled checkbox'.
onClick: ((html jQuery: #myDisabledCheckbox) attributeAt: 'checked' put:
(html jQuery this attributeAt: 'checked'));
with: 'mirror the other checkbox'
To put this example together I Googled 'jQuery checkbox' - found
translated the result into Seaside jQuery.
Hope this helps
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside