Ram @ Referbruv Profile picture
Articles, Interview Questions, Boilerplates.. | .NET Core, Angular, Docker, Flutter, DSA, Web/API development and more at 👉 https://t.co/Q7yxhhuTmL
Dec 10, 2021 9 tweets 2 min read
DOM API provides different methods to access elements in a document ⬇️

#javascript #html #dom document.getElementById()

returns the element that is identified by the passed Id attribute or null if no element matches the passed Id.

For example:
document.getElementById("emailAddress") returns the element which is identified by "emailAddress"