I got this code from the jQuery plugin tutorial. however, my question is a javascript/jquery
question.
In the code you can see that the filter()
returns an object, which contains a collection of the "filtered" objects. and the append()
is manipulating it.
What i ask is: how the append function manipulates ALL of the elements and not working only once on the returned object?
this.filter( "a" ).append(function() {
return " (" + this.href + ")";
});