[jQuery] Re: JQuery to select rows inside a particular table

2008-10-16 Thread [EMAIL PROTECTED]
Why? Because I am stilling learning how to do these queries, in other words, I don't know what I am doing. =) Good point regarding valid xhtml and a unique id. -john On Oct 15, 8:16 pm, RobG [EMAIL PROTECTED] wrote: On Oct 16, 7:53 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am

[jQuery] Re: JQuery to select rows inside a particular table

2008-10-16 Thread [EMAIL PROTECTED]
This worked. Thank you very much for your help. -jl On Oct 15, 4:10 pm, Alexandre Plennevaux [EMAIL PROTECTED] wrote: $('#myTable tr'); HTH Alex On Thu, Oct 16, 2008 at 12:59 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Here you go. I am looking for a general solution. -jl

[jQuery] Re: JQuery to select rows inside a particular table

2008-10-16 Thread Alexandre Plennevaux
just a bit of explanation on what you tried and why it didn't work: $('#myTable tr'); means select TR tags immediately () after the TABLE tag, whereas, as karl rightly pointed out, for browsers, even though you wrote your html as table tr, it really is table tbody tr whereas $('#myTable

[jQuery] Re: JQuery to select rows inside a particular table

2008-10-16 Thread RobG
On Oct 16, 5:49 pm, Alexandre Plennevaux [EMAIL PROTECTED] wrote: [...] ...No problem if there is a tbody or not, the TR is in any case inside the table. Just to be clear about this, an HTML table must *always* have a tbody element, even if there are no tags for one in the markup[1]. A

[jQuery] Re: JQuery to select rows inside a particular table

2008-10-15 Thread MorningZ
Show a snip of HTML for the table would be of great help for others to help you On Oct 15, 5:53 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am creating a series of tables and would like to be able to grab all the rows inside of a particular table. I tried $( table#myTable tr ) with no

[jQuery] Re: JQuery to select rows inside a particular table

2008-10-15 Thread Mauricio (Maujor) Samy Silva
: [jQuery] Re: JQuery to select rows inside a particular table Show a snip of HTML for the table would be of great help for others to help you On Oct 15, 5:53 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am creating a series of tables and would like to be able to grab all the rows inside

[jQuery] Re: JQuery to select rows inside a particular table

2008-10-15 Thread [EMAIL PROTECTED]
Here you go. I am looking for a general solution. -jl table id=myTable tr id=myTable_row_0 td/td /tr tr id=myTable_row_1 td/td /tr /table On Oct 15, 3:32 pm, MorningZ [EMAIL PROTECTED] wrote: Show a snip of HTML for the table would be of great help for others to help you On Oct 15, 5:53 

[jQuery] Re: JQuery to select rows inside a particular table

2008-10-15 Thread Alexandre Plennevaux
$('#myTable tr'); HTH Alex On Thu, Oct 16, 2008 at 12:59 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Here you go. I am looking for a general solution. -jl table id=myTable tr id=myTable_row_0 td/td /tr tr id=myTable_row_1 td/td /tr /table On Oct 15, 3:32 pm, MorningZ [EMAIL

[jQuery] Re: JQuery to select rows inside a particular table

2008-10-15 Thread RobG
On Oct 16, 7:53 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am creating a series of tables and would like to be able to grab all the rows inside of a particular table. I tried $( table#myTable tr ) with no avail. I am still new to JQuery so please forgive me if I am missing something

[jQuery] Re: JQuery to select rows inside a particular table

2008-10-15 Thread Karl Swedberg
On Oct 15, 2008, at 7:10 PM, Alexandre Plennevaux wrote: $('#myTable tr'); HTH Alex That's right. And in case jl wonders why, it's because some browsers treat the table as if it has a tbody element as a child of table, even if it isn't explicitly put in there. --Karl