Wednesday, December 2, 2009

[jQuery] Re: Ignoring click events in cells

On Dec 2, 3:44 pm, Andyk <andym.kni...@googlemail.com> wrote:
> However, checking/unchecking the checkbox in each row also triggers
> the event. Is there anyway of preventing this?

$("tr").click(function(event) {
if ($(event.target).is(":checkbox")) return;
alert($(this).attr("id"));
});

No comments:

Post a Comment