Q. Which of the following is the correct JavaScript syntax to access the element using HTML code?

  • (A) getElement ("availablecourse").innerHTML = "See the list of availablecourse";
  • (B) getElementById ("availablecourse").innerHTML = "See the list of availablecourse";
  • (C) getId ("availablecourse") = "See the list of availablecourse";
  • (D) document.getElementById ("availablecourse").innerHTML = See the list of availablecourse;
πŸ’¬ Discuss
βœ… Correct Answer: (D) document.getElementById ("availablecourse").innerHTML = See the list of availablecourse;

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
239
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
80%
Success Rate