I was wondering if it's possible to get to the name of the method that created a current array of elements.
I tried to find it in the jquery object itself, but I don't see a place where it could be stored.
Try to fill this in
$.fn.myfunc=function(){
//your brilliant idea here
return functname;
}
$('body').find('.a').myfunc(); //returns 'find'
$('body').children('.a').myfunc(); //returns 'children'
$('body').find('.a').next('div').myfunc(); //returns 'next'
//and if You're really awesome:
$('body').find('.a').next('div').css('float','left').myfunc(); //returns 'next'