JSFiddle - React, Tailwind, and code Playground
HTML
<select name="template" id="template">
<option value="" selected>--Select--</option>
<option value="HOME">Home</option>
<option value="HELP">How We Help</option>
<option value="CONTACT">Contact Us</option>
<option value="ABOUT">About Us</option>
</select>
<select name="location" id="location"">
<option value="" selected>--Select--</option>
<option value="header">Header</option>
<option value="center">Center</option>
<option value="footer">Footer</option>
</select>
JavaScript
$(document).ready(function(){
$("#location").hide();
$("#template").change(function(){
if ($(this).val() == "CONTACT"){
$("#location").show();
} else{
$("#location").hide();
}
});
});