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.