Which two code segments should you add to the webpage?

You develop an HTML5 webpage that contains the following HTML markup:

You have the following requirements:
Retrieve the content for any OPTION elements when the value of the selected attribute
equals selected.
Add the content to a comma separated string.
You need to retrieve the required data.
Which two code segments should you add to the webpage? (Each correct answer presents
a complete solution. Choose two.)

You develop an HTML5 webpage that contains the following HTML markup:

You have the following requirements:
Retrieve the content for any OPTION elements when the value of the selected attribute
equals selected.
Add the content to a comma separated string.
You need to retrieve the required data.
Which two code segments should you add to the webpage? (Each correct answer presents
a complete solution. Choose two.)

A.
Option A

B.
Option B

C.
Option C

D.
Option D

E.
Option E

Explanation:
Note:
* select option:selected
:selected Selector
Description: Selects all elements that are selected.



Leave a Reply 3

Your email address will not be published. Required fields are marked *

13 + ten =


Enrique

Enrique

Correct answers are C and D.

freedeveloper

freedeveloper

Bo don’t get the content of selected option
C and D should be the correct answer

Zachary

Zachary

Yeah it’s definitely C and D