[jQuery] Re: chaining and functions

2008-09-02 Thread Michael Geary
I do not understand why $('#content').empty().append(bhello/b); works, and this works $('#content').empty().append(makeContent()); function makeContent(){ return bhello/b; }; That works because it is exactly the same as this code: function

[jQuery] Re: chaining and functions

2008-09-02 Thread Henry
On Sep 2, 1:09 pm, jan wrote: Hi, another starter question: I do not understand why $('#content').empty().append(bhello/b); works, and this works $('#content').empty().append(makeContent()); ^ makeContent() - is a function call, where -