I want to set an attribute of "attribute" with the value of "value" on the Sprint link, why is the parentElement returning undefined?
<a> Sprint
<script>
const value = "sprint-info"
const target = this.parentElement;
target.setAttribute("attribute", "value");
console.log(target)
</script>
</a>