JSFiddle - React, Tailwind, and code Playground

by DrydenLong

HTML

<select id="text1" name="text1" class="sbs_update_field">
<option value="Season's Greetings">Season's Greetings</option>
<option value="Wishing You and Your Family">Wishing You and Your Family</option>
<option value="Our Sincerest Thanks">Our Sincerest Thanks</option>
<option value="Spirit of the Holiday">Spirit of the Holiday</option>
<option value="Warmest Thoughts">Warmest Thoughts</option>
<option value="Other...">Other...</option>
</select>

<textarea id="text2" name="text" rows="6" cols="30">Season's Greetings and Best Wishes for a Happy New Year</textarea>

JavaScript

$('#text1').change(function () {
		if( $('#text1').val() == 'Season\'s Greetings') {
			$('#text2').text('Season\'s Greetings and Best Wishes for a Happy New Year');
		}
		else if ($('#text1').val() == 'Wishing You and Your Family'){
			$('#text2').text('Wishing you and your family A wonderful holiday season and a healthy and peaceful New Year');
		}
		else if ($('#text1').val() == 'Our Sincerest Thanks'){
			$('#text2').text('Our Sincerest Thanks and Warmest Wishes for the Holiday Season and throughout the New Year');
		}
		else if ($('#text1').val() == 'Spirit of the Holiday'){
			$('#text2').text('In the true spirit of the Holiday Season We extend to you Our Sincerest Appreciation for your Business');
		}
		else if ($('#text1').val() == 'Warmest Thoughts'){
			$('#text2').text('Warmest thoughts and Best Wishes For a Merry Christmas and a very Happy New Year');
		}
		else if ($('#text1').val() == 'Other...'){
			$('#text2').text('');
		}
	});