Sign in to Community
Sign in to view all badges
Expand my Community achievements bar.
Hello, I'm creating a delivery via JS and I'm trying to add an attribute dynamically to this code:
var xmlTargeting =
I've tryed xmlTargeting.targets.setAttribute("addProofInTarget","true");
but I got an error: xmlTargeting.targets.setAttribute is not a function.
Any idea on the right code?
Go to Solution.
Try to use .add() method from jsapi
var proof = xmlTargeting.targets.deliveryTarget.add(<addProofingTarget/>) ;
proof.anyAttribute = something;
View solution in original post