+ 1
What is the ID of an element in JavaScript??
Like in var ob=document.getElementbyId("text");
3 Answers
+ 25
<p id=text>Text</p>
document.getElementById("text")
(based on what id the developer gives it...)
+ 23
anything
+ 2
The 'Text' in paragraph body can be anything or is it supposed to be 'Text' only ?? @ValentinHacker