JSFiddle - React, Tailwind, and code Playground

by Rob Lardy

HTML

//NERC auto sets priority to High

var priority = $("#menu");
var isnerc = $("#is-nerc");//.is(':checked');
var legend = $("legend");

isnerc.on('change', function() {

	if ($(this).is(':checked')) { 
	
		priority.val('high');
		legend.css("color", "red");

	} else {
	
		legend.css("color", "black");
		
	}
	
	



});