So I have a list of attributes stored as a string variable. I want to add that variable to a <div>. I'm currently at a loss. What I have is as follows:
HTML:
<div></div>
JS:
var attributes = 'data-id="123" data-type="content" data-order="1"'
Desired Output:
<div data-id="123" data-type="content" data-order="1"></div>
.data()method.