MCQs > IT & Programming > JavaScript > How can you set DOM element style assuming there is an element with id='id'?

JavaScript MCQs

How can you set DOM element style assuming there is an element with id="id"?

Answer

Correct Answer: document.getElementBy!d('id').style.text.color = 'red';

Explanation:

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it