On Sep 4, 10:01 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> There is allready such an attribute....
> try this:
>
> $("#myID .MyClass mychildren").myfunction() {
>   console.log(this.selector); // "#myID .MyClass mychildren"
>
> }

$.fn.ShowSelector = function () { return this.selector; }
console.log($('input.foo').ShowSelector());

yields undefined

Reply via email to