> You will see an alert regardless of the selection criteria. But if > you do this it will not alert: > > jQuery.fn.myPlugin = function() { > if (size() > 0) > alert ( 'hello world' ); > return this; > };
Instead of size() He meant: this.size() which is the same as this.length -- Ariel Flesler http://flesler.blogspot.com