[jQuery] Adding custom selectors via a plugin

[jQuery] Adding custom selectors via a plugin

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi folks,
Is it possible to add custom selectors to jQuery via a plugin? I'd
basically just need to rewrite the selector string before it get's
handled by jQuery itself.
The reason I ask is because I'm currently converting some OOPish code
into jQuery plugins which is tons of fun and I'd like to use selectors
like this:
--------------------------------------------------------------------------------
$('#tasklist task:3')
    .task('field', 'name', 'New task name')
    .task('save');
--------------------------------------------------------------------------------
instead of
--------------------------------------------------------------------------------
$('#tasklist tr[td]:nth-child(3)')
    .task('field', 'name', 'New Task name')
    .task('save');
--------------------------------------------------------------------------------
Thanks a lot
-- Felix
<div class="moz-signature"><small>--------------------------
My latest blog posts:
<p
style="margin-top: 10px; margin-bottom: 0pt; padding-bottom: 0pt; line-height: 0pt;">
<a href="http://feeds.feedburner.com/%7Er/thinkingphp/%7E6/1"> <img
src="cid:part1.09050303.09050201@gmail.com"
alt="ThinkingPHP and beyond" style="border: 0pt none ;"></a>

My Business: <a href="http://www.fg-webdesign.de">http://www.fg-webdesign.de</a>


</small>
</div>
</body>
</html>