I am attempting to add values within a script tag and reading it and parsing the values in JavaScript. I have something like this in my HTML file.
<script type="text/plain" id="bound-bunny">
v -0.069188 0.091379 -0.013998
v -0.266134 0.287866 0.204836
v 0.150992 0.147769 0.133125
</script>
And I would like to read the values within script tag and eventually parse it.
var me = document.getElementById('bound-bunny').innerHTML;
console.log(me);
I have done something like this, but I am getting Cannot read property 'innerHTML' of null so I am not sure how to proceed.