hankknight
asked on
jQuery: Create div with attribute that contains dash
Using jQuery, how can I create a div with an attribute of: "data-rel-xyz"?
This does not work:
This does not work:
$('<div/>', {
data-rel-xyz: '555',
xyz: '123'
}).appendTo('body');
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.