Can I do this?
this.parentNode.parentNode.parentNode.parentNode.previousSibling.childNodes.childNodes.src = "/assets/img/icons/process.png";
this.parentNode.parentNode.parentNode.parentNode.previousSibling.childNodes.childNodes.src = "/assets/img/icons/process.png";
Unfortunately that is not possible since the element is in a dynamic arrayjacek wrote:It would probably be easier to access the element you want by giving it an ID and using getElementById
would that be possible ?
Good news... care to share the solution with us for people googling ?unemployment wrote:fixed... yay
jacek wrote:Good news... care to share the solution with us for people googling ?unemployment wrote:fixed... yay
this.parentNode.parentNode.parentNode.parentNode.previousSibling.childNodes.childNodes.src = "/assets/img/icons/process.png";Needed to be...
this.parentNode.parentNode.parentNode.parentNode.previousSibling.firstChild.firstChild.src = "/assets/img/icons/process.png";to fit my situation