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:
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
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
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]
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:
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/
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/
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
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...