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/