nerdexam
Microsoft

70-515 · Question #66

70-515 Question #66: Real Exam Question with Answer & Explanation

Sign in or unlock 70-515 to reveal the answer and full explanation for question #66. The question stem and answer options stay visible for context.

Question

You create a Web page that contains the following code. <script type="text/javascript"> var lastId = 0; </script> <div class="File"> Choose a file to upload: <input id="File0" name="File0" type="file" /> </div> <input id="AddFile" type="button" value="Add a File" /> <input id="Submit" type="submit" value="Upload" /> You need to provide the following implementation. - Each time the AddFile button is clicked, a new div element is created. - The new div element is appended after the other file upload div elements and before the AddFile span. - Each new element has a unique identifier. Which code segment should you use?

Options

  • A$("#AddFile").click(function () {
  • B$("#AddFile").click(function () {
  • C$("#AddFile").click(function () {
  • D$("#AddFile").click(function () {

Unlock 70-515 to see the answer

You've previewed enough free 70-515 questions. Unlock 70-515 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 70-515 Practice