[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

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

2008-10-15 Thread Mauricio (Maujor) Samy Silva
outubro de 2008 20:32 Assunto: [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

[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 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 pm, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > I am creating

[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 > > > > > > > > > > > On Oct 15, 3:32 pm, MorningZ <[EMAIL PROTECTED]> wrote: > > Show a snip of HTML for the table w

[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

[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 element as a child of , even if it isn't explicitly put in there. --Karl

[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: > >

[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 sol

[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