Skip to content

Commit c5ed1cf

Browse files
committed
Merge pull request semmypurewal#43 from iamgarry/patch-1
Demonstrate alternative syntax for append()
2 parents 6b27111 + 885a0d4 commit c5ed1cf

File tree

1 file changed

+2
-0
lines changed
  • Chapter4/Amazeriffic/javascripts

1 file changed

+2
-0
lines changed

Chapter4/Amazeriffic/javascripts/app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ var main = function () {
4646
});
4747

4848
$content = $("<div>").append($input).append($button);
49+
/* Alternatively append() allows multiple arguments so the above
50+
can be done with $content = $("<div>").append($input, $button); */
4951
}
5052

5153
$("main .content").append($content);

0 commit comments

Comments
 (0)