+1 vote
71 views
asked in HTML5 by (3.1k points)
Hi All

   how to get the html element in javascript?

1 Answer

+1 vote
answered by (4.2k points)
Hi Jonathan

  You can use any one of the statment to get the element value in Java script.

var x = document.getElementById("main");

var y = x.getElementsByTagName("p");

Categories

...