[jQuery] Re: toggle checkbox when clicking td

2009-02-02 Thread Slafs
Hi! Thank you all for your replies! With a big help from my friend now i've got this: $(.myTable tr).each(function() { var tr = $(this); var input = $(input[type=checkbox], tr); tr.click(function() { input.attr('checked',

[jQuery] Re: toggle checkbox when clicking td

2009-02-01 Thread Slafs
', !$(this).attr ('checked')); }); }); please help. On Feb 1, 12:10 am, Slafs slaf...@gmail.com wrote: Hi! I would like to write a js script using jQuery which could help me to toggle checkbox. I have one checkbox for each row of table and i would like

[jQuery] toggle checkbox when clicking td

2009-01-31 Thread Slafs
Hi! I would like to write a js script using jQuery which could help me to toggle checkbox. I have one checkbox for each row of table and i would like to simplify the checking and unchecking the boxes by letting user just to click anywhere on the row to do this. I was trying something with