I read code on element using
const elem = document.getElementById("TcHmiRecipeEdit")
console.log(elem);
results:
What code in Javascript I need to use to get values Marked in the photo. I’m starting my adventure with javascript and what we have a huge problem with is actually extracting values from the code as in the example above.
2
Answers
querySelector
andquerySeletorAll
are suitable for this purpose.querySelector, querySelectorAll
Spreading a querySelectorAll and mapping the textContent