Although you're right, I'd be surprised if this problem actually popped up.

Some form of regex as part of the DOM find function in jQuery would be great
though...

Hey John! ;-)


Blair Mitchelmore-2 wrote:
> 
> This isn't a fullproof solution (it will also find td elements with the 
> id 'comments_td_' if you have one) but I'm not sure that jQuery has 
> wildcard searches (unless the expression parser detects regex and passes 
> it through as the test against the tag/attribute) so you could use
>     $("[EMAIL PROTECTED]'comments_td_']").click(fn);
> which makes sure the elements selected have ids that begin with 
> 'comments_td_'
> 
> Hope that helps.
> 
> -blair
> 
> Junior wrote:
>> I am using the following code:
>>
>> $("[EMAIL PROTECTED]").click(function(event) {
>>
>> I need to detect an onClick event for ANY <td> with an id beginning 
>> with "comments_td_". In the example above, I have inserted "WILDCARD" 
>> because I am unsure of what the JQuery synatx is for wildcard - I have 
>> tried "*" but it did not work. Any recommendations?
> 
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 
> 

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


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

Reply via email to