JSFiddle - React, Tailwind, and code Playground
HTML
<div class="example">
<select name="filter1">
<option value="0">Example</option>
<option value="1">Example 1</option>
<option value="2">Example 2</option>
<option value="3" selected>Example 3</option>
</select>
</div>
<div class="demo">Selected Here</div>
JavaScript
$(".example select[name=filter1]").change(function(){
$(this).closest(".example").next(".demo").text($(":selected", this).text());
});