READ Free Dumps For Microsoft- 70-480
Question ID 14849 | 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?
|
Option A | Option A
|
Option B | Option B
|
Option C | Option C
|
Option D | Option D
|
Correct Answer | B |
Explanation 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
Question ID 14850 | You are creating a web form that users will use to enter their personal information. The
form includes the following HTML.
You have the following requirements:
✑ When a user enters an input box, the cell on the right must turn green.
✑ When a user leaves an input box, the cell on the right must turn white.
You need to create the web form to meet these requirements.
Which code segment should you use?
nth-child
|
Option A | Option A
|
Option B | Option B
|
Option C | Option C
|
Option D | Option D
|
Correct Answer | A |
Explanation Explanation: * The :nth-child(n) selector matches every element that is the nth child, regardless of type, of its parent. n can be a number, a keyword, or a formula. Example Specify a background color for every
element that is the second child of its parent: p:nth-child(2) { background: #ff0000; } * parent.next() Here: the cell to the right of the current cell. Reference: CSS3 :nth-child() Selector