ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 123 - Certified JavaScript Developer I discussion

Report
Export

Refer to HTML below:

<p> The current status of an Order: <span id ="status"> In Progress </span> </p>.

Which JavaScript statement changes the text 'In Progress' to 'Completed' ?

A.
document.getElementById("status").Value = 'Completed' ;
Answers
A.
document.getElementById("status").Value = 'Completed' ;
B.
document.getElementById("#status").innerHTML = 'Completed' ;
Answers
B.
document.getElementById("#status").innerHTML = 'Completed' ;
C.
document.getElementById("status").innerHTML = 'Completed' ;
Answers
C.
document.getElementById("status").innerHTML = 'Completed' ;
D.
document.getElementById(".status").innerHTML = 'Completed' ;
Answers
D.
document.getElementById(".status").innerHTML = 'Completed' ;
Suggested answer: C
asked 23/09/2024
Tyler Andringa
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first