On 4/5/07, RwL <[EMAIL PROTECTED]> wrote:
> How about this? > > $('input.rowChecker').click(function(){ > $(this).parent().siblings('.updateItems').find('[EMAIL PROTECTED]').attr('checked', > this.checked); > > }); >
Another possibility: $("table tr td:last-child input").click(function(){ $("../../td [EMAIL PROTECTED]", this).attr("checked", this.checked ); } ) This way you wouldn't need classes on the last one or the inner ones. This is my first working xPath sample. I think it could be even shorter. Glen