<span>I think it is something like this </span><div><span><br></span></div><div><span>onChange:</span><br><span> (html jQuery ajax</span><div> serializeChildren: (htnl jQuery id: parentID);<br>
<span> script: [:script | checkBox ifTrue: [script alert: 'True']</span></div><div><span> ifFalse: [script alert: 'False']])</span><br>
<br><div class="gmail_quote">On 23 May 2012 14:36, janus <span dir="ltr"><<a href="mailto:janus1859@googlemail.com" target="_blank">janus1859@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I would like to use a checkbox with JQuery. How is it possible to use the<br>
onchange-event to show the checked-status of the checkbox.<br>
This is my approach so far:<br>
<br>
/renderCheckBoxFor: eachAccount on: html<br>
| ID parentID checkBox |<br>
parentID := html nextId.<br>
ID := html nextId.<br>
html div<br>
id: parentID;<br>
with: [<br>
html label<br>
for: ID;<br>
with: 'CheckBox: '.<br>
html checkbox<br>
id: ID;<br>
value: checkBox;<br>
callback: [ :value | checkBox := value ];<br>
onChange:<br>
(html jQuery ajax<br>
callback: [ :value | Transcript show: value; cr ]<br>
value:<br>
(html jQuery this<br>
parent: '#' , parentID;<br>
find: ('#', ID)) serialize) ]./<br>
html break<br>
<br>
--<br>
View this message in context: <a href="http://forum.world.st/Checkbox-with-JQuery-tp4631550.html" target="_blank">http://forum.world.st/Checkbox-with-JQuery-tp4631550.html</a><br>
Sent from the Seaside General mailing list archive at Nabble.com.<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div><br></div>
</div>