oops, misread your message, didn't see that you only wanted a certain tag type.

Use $('abc').getElementsByTagName('span') instead

On 7/3/06, Daniel Elmore <[EMAIL PROTECTED]> wrote:
Just trying to get a handle on any SPANs so I can fill them in via
innerHTML. So how would I loop over those childNotes and only touch the
SPANs?

Thanks!


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrew
Kaspick
Sent: Monday, July 03, 2006 1:51 AM
To: rails-spinoffs@lists.rubyonrails.org
Subject: Re: [Rails-spinoffs] Get Elements Within ID

Well, $('abc').childNodes will get you the 3 tags you mention, but do
you also want possible children of those tags too?

On 7/3/06, Daniel Elmore <[EMAIL PROTECTED]> wrote:
> Is there a function that returns all the elements of a particular tag
within
> a particular ID.
>
> Example:
>
> <div ID="abc">
>         <span></span>
>         <p></p>
>         <span></span>
> </div>
>
> Now I want all the SPAN elements under ID "abc". Also would the SPAN tags
> need an ID themselves?
>
> Thanks!
>
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to