Hi Aaron,
actually this seems broken. I have tested it some weeks before, but
forgot to add a bug report.
2007/1/3, Aaron Heimlich <[EMAIL PROTECTED]>:
> This might help:
>
> $("[EMAIL PROTECTED]'del']").id("del*"+pb+"*"+iA+"*ck");
>
> It selects any <a> element whose "id" attribute begins with "del"[1]
>
> [1]
> http://jquery.com/docs/Base/Expression/CSS/#Supportedbutdifferent
>
>
> On 1/3/07, Bruce MacKay <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hello folks,
> >
> > Can wildcards be used in the following context...
> >
> > I change the ID of an "a" tag surrounding an icon (that when clicked
> triggers a delete function) from its original setting of "del" to a string
> containing info (pb, iA) about the item (to be deleted) by:
> >
> > $("#del").id("del*"+pb+"*"+iA+"*ck");
> >
> > This only "works" for the first iteration. If I subsequently select
> another item to be deleted, the ID of the "a" tag is no longer just "del"
> and so obviously the ID of the a tag won't be changed because it cannot be
> found. Is there a way that I can use some type of wildcard to find an
> element (and in this case there will only ever be a single element) whose id
> begins with "del"... eg.
> >
> > $("#del??).id("del*"+pb+"*"+iA+"*ck");
> >
> > so that I can subsequently change its ID to reflect the item I am wanting
> to delete?
> >
> > Thanks,
> >
> > Bruce
> > _______________________________________________
> > jQuery mailing list
> > [email protected]
> > http://jquery.com/discuss/
> >
> >
> >
>
>
>
> --
> Aaron Heimlich
> Web Developer
> [EMAIL PROTECTED]
> http://aheimlich.freepgs.com
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
>
--
--
Paul Bakaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/