I wonder how do I place user selected option somewhere in HTML as text. I get user selection using JavaScript but I don't know how to pass it back to HTML.
My current code looks like this. HTML:
<select id="profile" onchange="myFunction()">
<option>One</option>
<option>Two</option>
<option>Three</option>
</select>
Javascript:
function myFunction() {
var user_selection = $( "#profile option:selected" ).text();
alert(user_selection);
}