Hello,<br><br>I think I found the solution:<br><br> html div: [ <br> html text: 'Select: '.<br> html anchor<br> onClick: ((html jQuery expression: ':checkbox:not(:checked)') trigger: 'click' );<br>
with: 'All, '.<br> html anchor<br> onClick: ((html jQuery expression: ':checkbox:checked') trigger: 'click' );<br> with: 'None' ].<br><br>This works perfectly :-)<br>
<br>Jan.<br><br><br><div class="gmail_quote">On Fri, Dec 12, 2008 at 2:53 PM, Jan van de Sandt <span dir="ltr"><<a href="mailto:jvdsandt@gmail.com">jvdsandt@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>I'm using Seaside 2.9, Squeak and the new Seaside JQuery support. I'm creating a table where each row has a checkbox, just like GMail I want to provide a "Select all" and a 'Select none" link. <br>
<br>My idea is to use JQuery to select or unselect all checkboxes:<br><br> html anchor<br> onClick: ((html jQuery expression: ':checkbox') value: 'checked');<br> with: 'All, '.<br>
<br>The problem is that this adds the value="check" attribute to all checkbox elements but I need the checked="checked" attribute!<br><br>I also tried:<br><br> html anchor<br> onClick: ((html jQuery expression: ':checkbox') do: [ :each | each click ]);<br>
with: 'All, '.<br><br>But this doesn't work because the JQueryInstance object has no click method.<br><br>Can anyone help me out?<br><font color="#888888"><br>Jan.<br>
</font></blockquote></div><br>