3 ms·
What about jQuery? $('<div>', { class: 'content', id: pageId })
by lean 15y ago
What about jQuery?
$('<div>', {
class: 'content',
id: pageId
})
- smackjer 15y agoThat's fine for a simple DOM element, but quickly gets out of control. Imagine a list rendered in a loop from a JSON array.