JQuery alternative SELECTORS ....

JQuery alternative SELECTORS ....

I am sure that everyone has come across this problem and wishes they had an easier option ...

var selector = $('#selector');
$(selector+' .class').foo();

or

var selector = $('#selector');
$(selector+' li').foo();


I was wondering if the above could be implemented and i am sure that everyone would find it helpful, especially when dealling with UI's.

I think it would defenetly speed up the time we spend developing with jquery.