Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

JS - function of get specific ID element in P element with getElementsByTagName

0 votes
added Dec 17, 2020 in Javascript by lcjr Second Warrant Officer (3,760 points)
function myChoc() {
  var x = document.getElementsByTagName("P").namedItem("chocolate");


Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.