How to create a HTML tag, using an object of properties.
[code]$(‘#somediv’).append($(‘<a/>’, {href: ‘#’, id: ‘dothing’, text: ‘Do Thing’}));[/code]
How to create a HTML tag, using an object of properties.
[code]$(‘#somediv’).append($(‘<a/>’, {href: ‘#’, id: ‘dothing’, text: ‘Do Thing’}));[/code]
Tags: Code, dom, html, javascript, jquery, object
Posted in Code | No Comments »