I'm trying to insert javascript code into an element, but it doesn't work and most likely I'm doing something wrong...
I tried to look in the wiki, but I didn't find any examples that fit my needs...
I tried with different versions of my code, but most likely I'm doing something wrong...
I tried to insert this code into the article___customer element
unfortunately it doesn't work...
I tried to look in the wiki, but I didn't find any examples that fit my needs...
I tried with different versions of my code, but most likely I'm doing something wrong...
I tried to insert this code into the article___customer element
JavaScript:
var price = document.getElementById('90');
if (this.element.get('value') === "1" || this.element.get('value') === "2") {price.backgroundColor = '#FFFF99';}}
unfortunately it doesn't work...