Okay, thanks for the explanation.
Could somebody please add a note to the documentation about that?
On Jun 20, 5:49 pm, "John Resig" <[EMAIL PROTECTED]> wrote:
> .add() isn't destructive - calling it does not modify the original
> object (so, it's unlike an array's .push(), for example). Therefo
.add() isn't destructive - calling it does not modify the original
object (so, it's unlike an array's .push(), for example). Therefore to
get your second example working you'd have to do:
var test = $('form');
test = test.add ('li');
console.log (test);
--John
On 6/20/07, Gordon <[EMAIL PROTEC
2 matches
Mail list logo