Showing elements in separate divs

Showing elements in separate divs
0
#1

I want to display values of options property in separate divs on click event.

https://codepen.io/Tarun1980/pen/gJRvqX

#2

It seems like it is doing what you want. You have got to learn how to tell us what you expect to happen vs. what you see happening.

#3

In the present case, all values of options property are showing in a single div but I need them to be in separate divs like :

<div> dark <div>
<div> white <div>
<div> heavy <div>
& so on.