Maybe this one make more sense:

jQuery.fn._find = jQuery.fn.find;
jQuery.fn.find = function(t, context) {
    if (typeof t == 'string' && document.getElementById(t))
        t = '#' + t;
    return this._find(t, context);
}

It's sort of a "Prototype conversion" plugin I suppose.  And probably
useful for people like me that forget the '#' a lot. I think the only
problem you'd have is if you have ids like 'div' or 'span', etc.

Mike

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to