Which function should you use?

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?

A . Option A
B . Option B
C . Option C
D . Option D

Answer: B

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

Latest 70-480 Dumps Valid Version with 288 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments