DRAG DROP
You have the following markup:
You need to add a dashed border programmatically to the div.
You write the following code.
How should you complete the code? To answer, drag the appropriate code elements to the correct targets in
the answer area. Each code can be used once, more than once, or not at all. You may need to drag the split
bar between panes or scroll to view content.
Select and Place:
Explanation:
https://www.w3schools.com/jsref/prop_style_border.asp
Is this correct?? I guess the last one should be “border”
last one should be ” border”
Target2: option.appendChild(newOption);
the correct answer is
Target 1=getElementByID
Target 2=’yellowDiv’
Target 3=’ border’ take care here use the space first the name of class name
target 1: var newOption=document.createElement(‘option’);
target 2: option.appendChild(newOption);
Corrects answers:
getElementById
yellowDiv
‘ border’
option.appendChild(newOption);