I have an select dropdown. I want to fetch the html of the selected option
<select id="filter" multiple="multiple">
<option>Yes</option>
<option>No</option>
</select>
For example if I select Yes and No I want the output as
<option>Yes</option>
<option>No</option>