OK - this is the best I could come up: function $$(selector, context){ return jQuery(selector.replace(/(\[|\])/g, '\\$1'), context) }
$$('#contact[email]') It adds to the global namespace (so won't work with prototype for example, which also uses $$) but it does do trick. Thoughts?