JSFiddle - React, Tailwind, and code Playground
by ChrisStanyon
HTML
<select name="problem" id="problem">
<option value="" data-msg="">Choose an issue category</option>
<option value="portal" data-msg="The issue I have is about the portal">Portal</option>
<option value="other" data-msg="Please explain your issue here">Other</option>
</select>
<textarea id="description" name="description" rows="4" cols="60"></textarea>
JavaScript
$(document).ready(function() {
$('#problem').change(function() {
$('#description').text( $(':selected', this).data('msg') );
});
});