It's a shame something like that isn't in.

Here is another approach which actually detects all td clicks...

$("td").click(function(){

  //If the td ID length is greater than 12...
  if ($(this).id().length >12){

    //If the first 12 chars of the ID = td_comments_...
    if ($(this).id().substring(0,12) == "td_comments_")
    {
      /* Your onclick event for td_comments_ goes here */
    }
  }
});

I'm sure jQuery has functions which effectively do the same thing, but here
is something which would work in the same way.



Fil wrote:
> 
>> 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 *very* easily:
> 
> http://jquery.com/discuss/2006-August/009428/
> http://jquery.com/discuss/2006-August/009429/
> 
> -- Fil
> 
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wildcards-tf2299089.html#a6390886
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to