MCQs > IT & Programming > Ajax > Which will change the class of XHTML element having ID of 'username'?

Ajax MCQs

Which of the following will change the class of XHTML element having ID of 'username'?

Answer

Correct Answer: document.getElementById("username").className = "approved";

Explanation:

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

Ajax Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Ajax Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it