Could you ignore the fact that it has to be unique, let's say I want
to query on another attribute. And I want the query to limit the
search to the elements in my Array.
How do I do that ?
On 30 sep, 15:37, BB <buchholz.bast...@googlemail.com> wrote:
> An ID has to be uniq so you can just do that:
> $("#headline").html();
>
> On 30 Sep., 15:40, "graphic...@googlemail.com"
>
> <graphic...@googlemail.com> wrote:
> > Hi,
>
> > I've build the following array using all the element in this.parent
> > which have a class '.RepeatedItemElement' :
>
> > this.elements = $(".RepeatedItemElement", this.parent);
>
> > Now I want to query this array and get the innerHTML of the element
> > which has id='headline'. I've tried the following:
>
> > var test = $(this.elements[id = "headline"]).html();
>
> > but it doesn't work.
>
> > What is the correct way of doing this ?
>
> > Thanks
No comments:
Post a Comment