standard attributes for an element must follow 'id' and 'label'. This
is standardized in setting "var z=2", as it skips past the first
attributes and finds the remaining. Though this is a lot of code for
each level of elements;
var attribs = $parent[0].attributes
attrb=[];
for (var z = 2; z < attribs.length; z++) {
attrb.push(attribs[z].name +":"+ attribs[z].value)
}
console.log(attrb)
No comments:
Post a Comment