Exam 70-480 Topic 8 Question 46 Discussion
Actual exam question for Microsoft's 70-480 exam
Question #: 46
Topic #: 8
Question #: 46
Topic #: 8
You are developing a web form that includes the following code.

When a user selects the check box, an input text box must be added to the page dynamically.
You need to ensure that the text box is added.
Which function should you use?


When a user selects the check box, an input text box must be added to the page dynamically.
You need to ensure that the text box is added.
Which function should you use?

Suggested Answer: B Vote an answer
Explanation/Reference:
Explanation:
We create a now div element with the textbox.
We then use appendChild() method appends this node as the last child the input node divname.
Reference: HTML DOM appendChild() Method
Explanation:
We create a now div element with the textbox.
We then use appendChild() method appends this node as the last child the input node divname.
Reference: HTML DOM appendChild() Method
by Christine at Jan 21, 2024, 01:45 PM
0
0
0
10
Comments
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.
Report Comment
Commenting
You can sign-up / login (it's free).