var attr = {node:"<tr> ,id=tr1$<td>,colspan=2,style.width=100%$<div>,id=divlistudcitems$<select>,id=lstListUdcItems,name=lstListUdcItems,size=12,style.width=100%;"}
in the above code i will pass the value of attr to a function createHTML where i need to iterate each and every tag (tr,td,div)using jquery for each. Could anyone advice how to acheive this.
var root=document.getElementById("target")
createHTML(root,attr);