[jQuery] Re: jQuery Nesting Tables

2009-07-29 Thread Jules
As mentioned by FrenchiINLA, $("table tr:has(table)") or $(".list tr:has(table)") should do it. On Jul 29, 5:04 am, nullstring wrote: > Hi, > > am not sure if I'm doing this right .. > > I have here the function to move the paging from GridView(table) > generated by .NET, on top/before the table

[jQuery] Re: jQuery Nesting Tables

2009-07-28 Thread nullstring
Hi, am not sure if I'm doing this right .. I have here the function to move the paging from GridView(table) generated by .NET, on top/before the table(GridView), and put it inside the DIV element. Problem is, the condition there: if($('tbody tr:last td:has(table)', this).length > 0) doesn't wor

[jQuery] Re: jQuery Nesting Tables

2009-07-28 Thread nullstring
Hi, am not sure if I'm doing this right .. I have here the function to move the paging from GridView(table) generated by .NET, on top/before the table(GridView), and put it inside the DIV element. Problem is, the condition there: if($('tbody tr:last td:has(table)', this).length > 0) doesn't wor

[jQuery] Re: jQuery Nesting Tables

2009-07-26 Thread FrenchiINLA
I didn't go through your whole code, but you can always check existence of jquery object with 'has' to check attribution, or check for length to see if the array is not empty somethign like $('tbody[tr:last]', '[id$=GV]).length > 0 means it exists. On Jul 25, 11:55 pm, nullstring wrote: > oh gra

[jQuery] Re: jQuery Nesting Tables

2009-07-25 Thread nullstring
oh grace god, someone replied. thanks @FrenchiNLA here's the generated .NET html code   PrinterProcessPackageTypeLeadTime Edit View AlcanGr

[jQuery] Re: jQuery Nesting Tables

2009-07-25 Thread FrenchiINLA
Could you provide your html code generated by .net? it would help, but in general rule you don't have to check existence of an element to apply action to it. Jquery disregard the action if it doesn't exist. For your example: $('tbody[tr:last][td][table]', $(this)).remove(); will work if it can fin

[jQuery] Re: jQuery Nesting Tables

2009-07-25 Thread nullstring
Please help? On Jul 25, 10:12 pm, nullstring wrote: > Hi, > > In my last row (parent Table) with colspan(tr), I have another Table > (without any.attributes) which was generated by GridView, Paging > enabled and located in footer .. > > How do I know if that Table exists in my last row(parent Ta