jQuery Insert multiple attributes at once
I have a string that looks like

    var x = 'class="one two three" style="width:100px; background:#ccc" id="test"'

How can i insert this string of attributes to an element on the page. 
jQuery Insert multiple attributes at once
===

I have a string that looks like

    var x = 'class="one two three" style="width:100px; background:#ccc" id="test"'

How can i insert this string of attributes to an element on the page. 