Hello,
I would like to use a checkbox with JQuery. How is it possible to use the onchange-event to show the checked-status of the checkbox. This is my approach so far: renderCheckBoxFor: eachAccount on: html | ID parentID checkBox | parentID := html nextId. ID := html nextId. html div id: parentID; with: [ html label for: ID; with: 'CheckBox: '. html checkbox id: ID; value: checkBox; callback: [ :value | checkBox := value ]; onChange: (html jQuery ajax callback: [ :value | Transcript show: value; cr ] value: (html jQuery this parent: '#' , parentID; find: ('#', ID)) serialize) ]. html break |
I think it is something like this
onChange:
(html jQuery ajax serializeChildren: (htnl jQuery id: parentID); script: [:script | checkBox ifTrue: [script alert: 'True'] ifFalse: [script alert: 'False']])
On 23 May 2012 14:36, janus <[hidden email]> wrote: Hello, _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Thank you very much! It works perfectly.
Am 23.05.2012 14:46, schrieb Ryan Simmons: I think it is something like this _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |