[jQuery] Wildcards

2007-01-03 Thread Bruce MacKay
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:

Re: [jQuery] Wildcards

2007-01-03 Thread Jörn Zaefferer
Bruce MacKay schrieb: [...] 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

Re: [jQuery] Wildcards

2007-01-03 Thread Aaron Heimlich
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

Re: [jQuery] Wildcards

2007-01-03 Thread Paul Bakaus
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]

Re: [jQuery] Wildcards

2006-09-20 Thread Dan Atkinson
I agree that it generates a lot of unnecessary work on the client side any time someone clicks on a TD. It really was just a shot in the dark though. I had an idea what I was doing, but the results were never going to be pretty. Hey, throw enough spaghetti at the wall... ;) dave.methvin wrote:

Re: [jQuery] Wildcards

2006-09-20 Thread Sam Collett
Isn't applying a class to the table cells in question an option? You could then select by that class. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Wildcards

2006-09-20 Thread Fil
When I started with jquery I advocated for this (powerful and easy to implement). I still think it's a good idea, but the answer at the time (last August, not so far back...) was that it could be plugged-in *very* easily: http://jquery.com/discuss/2006-August/009428/

Re: [jQuery] Wildcards

2006-09-19 Thread Fil
Some form of regex as part of the DOM find function in jQuery would be great though... When I started with jquery I advocated for this (powerful and easy to implement). I still think it's a good idea, but the answer at the time (last August, not so far back...) was that it could be plugged-in

Re: [jQuery] Wildcards

2006-09-19 Thread Matt Stith
Personally, i use things with IDs like title_number and stuff like that all the time, and $([EMAIL PROTECTED]'title_']) seems to work fine. I havent had any problems.On 9/19/06, Dave Methvin [EMAIL PROTECTED] wrote: Here is another approach which actually detects all td clicks...