I'm trying to extract value property from a HTML file. I used querySelectorAll to get all the nodes in the file. Could anyone please help how do I only fetch value property from the file.
const nodes = document.querySelectorAll("add")
console.log(nodes)
<div>
<add value="abc"></add>
<add value="def"></add>
<add value="ghi"></add>
</div>
<add>is not valid HTML?addpart was some part of xml file. For data extracting purpose, I have added it to a HTML file. @EmielZuurbier