javascript

Javascript code posted
created at 07 Jun 15:06

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
var element = rule.getDataDimensionVal('closureLiveTarget');
if (args.parent){
 element = rule.core.jQ(element).parents(args.parent);
}
if (args.child){
  element = rule.core.jQ(args.child, element);
} 
if (args.attribute){
  return rule.core.jQ(element).attr(args.attribute);
}
return rule.core.jQ(element).text();
327 Bytes in 2 ms with coderay