Upon inspection in Chrome DevTools, the following html code was found:
<path class="link" d="M0,130C65,130 65,65 130,65"></path>
<path class="link" d="M0,130C65,130 65,195 130,195"></path>
Despite defining two distinct lines in the html, attempting to access the value of the <path> tag in javascript using:
console.log($('path')[0].attributes.d.value);
console.log($('path')[1].attributes.d.value);
Resulted in:
M0,730C0,730 0,730 0,730
M0,730C0,730 0,730 0,730
Both lines had the same value. This raises the question of why two different lines have identical values when accessed in this manner.
Initially tested within
$(document).ready(function () {})
, which still yielded the same incorrect results. However, when placing the console.log inside an "on-click" function, the correct values were returned. This suggests a potential issue with initialization.