JSFiddle - React, Tailwind, and code Playground

by Mohit Kumar Gupta

JavaScript

$('.blankSelect option:first').after($('<option />', { "value": '', text: '', class: '' }));

		$(".firstSelect").change(function(){
		  $(".secondSelect").val($(".secondSelect option:first").val());                                     
		});

		$(".secondSelect").change(function(){                 
		$(".firstSelect option:first-child").attr("selected", true);                            
		});