[jQuery] Help with custom selector

[jQuery] Help with custom selector


I wrote a custom selector to better deal with ASP.NET autogenerated
IDs. The syntax I got working is $(":asp('TextBox1')").show();
Here's the code:
jQuery.extend(
    jQuery.expr[":"],
    {
        asp: "jQuery(a).attr('id').match('_'+m[3]+'$');"
    }
);
I don't really think that's more readable than using an attribute
selector with the ends with option. What I'd really like to do is
this:
$("#TextBox1:asp").show();
Is this possible?