exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 1 question 7 discussion

Actual exam question from Microsoft's 70-480
Question #: 7
Topic #: 1
[All 70-480 Questions]

You are developing a customer web form that includes the following HTML.
<label id="txtValue"X/label>
Information from the web form is submitted to a web service. The web service returns the following JSON object.
{
"Confirmation": "1234",
"FirstName": "John"
}
You need to display the Confirmation number from the JSON response in the txtValue label field.
Which JavaScript code segment should you use?

  • A. $("#txtValue").val = (JSONObject.Confirmation);
  • B. $("#txtValue").val (JSONObject.Confirmation);
  • C. $("#txtValue").text = (JSONObject.Confirmation);
  • D. $("#txtValue").text (JSONObject.Confirmation);
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Incorrect Answers:
A, B: A label object has no value attribute.
Reference:
http://api.jquery.com/text/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Dani_Kalunga
4 years, 5 months ago
D is correct
upvoted 1 times
...
gonzdn
5 years, 2 months ago
The question asks: Which JavaScript code segment should you use? But the answer is for jquery, weird
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...