[jQuery] Re: Excluding some children in a selector

2009-04-03 Thread Thierry L
I rushed a bit in writing the html, the id should correspond to the table and not the tr. The is("button") didn't work but is("input") is getting what I wanted, thanks for the help. On Apr 2, 5:55 pm, "Richard D. Worth" wrote: > On Thu, Apr 2, 2009 at 4:14 PM, Thierry wrote: > > > I have the f

[jQuery] Re: Excluding some children in a selector

2009-04-02 Thread Richard D. Worth
On Thu, Apr 2, 2009 at 4:14 PM, Thierry wrote: > > I have the following structure for tr: > > > > > > > > > > I also have the following javascript: > > $("#world tr").click(function() { > // do stuffs > }); this selector doesn't seem to match your html, as it reads "all TR

[jQuery] Re: Excluding some children in a selector

2009-04-02 Thread Mauricio (Maujor) Samy Silva
$("#world tr").click(function() { // do stuffs }); Is there a way to prevent the above event from triggering when the hello button is clicked? $("#world tr").click(function() { $('input[name="hello"]').attr('disabled', 'disa

[jQuery] Re: Excluding some children in a selector

2009-04-02 Thread Thierry L
The behaviour is the same as before, are there any other suggestions? I have a partial solution where I add a class to each of the td except for the one containing the input and run the selector on that class. It runs as expected but nothing happens when just the table cell is pressed around the i

[jQuery] Re: Excluding some children in a selector

2009-04-02 Thread Eric Garside
$('button', $('#world tr').click(function(){ // Do stuff for #world tr onclick })).click(function(e){ e.stopImmediatePropagation(); return true; }); On Apr 2, 4:14 pm, Thierry wrote: > I have the following structure for tr: > > >     >     >     >       >     > > > I also