nerdexam
Microsoft

98-375 · Question #55

98-375 Question #55: Real Exam Question with Answer & Explanation

Sign in or unlock 98-375 to reveal the answer and full explanation for question #55. The question stem and answer options stay visible for context.

Question

Your code includes the following fragment: <input type="text" name="text1" id="myText" /> You need to add code that will retrieve the contents of the INPUT element. Which JavaScript code fragment will accomplish this?

Options

  • AvartxtContents =document.getElementById('text1').value;
  • BvartxtContents = document.getEIementyById('myText').value;
  • CvartxtContents =document.getElementById('text1');
  • DvartxtContents = document.getElementById('myText');

Unlock 98-375 to see the answer

You've previewed enough free 98-375 questions. Unlock 98-375 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 98-375 Practice