Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lean
· 15y ago · 0 comments
What about jQuery?
$('<div>', { class: 'content', id: pageId })
Comments
[–]
smackjer
15y ago
That's fine for a simple DOM element, but quickly gets out of control. Imagine a list rendered in a loop from a JSON array.