State Selection

by Tom M

HTML

<div id='container'>

</div>

JavaScript

let container = document.getElementById('container');
let newArray = [
  {
		"STATEFP": "06",
		"COUNTYFP": "001",
		"COUNAME": "Alameda",
		"STNAME": "California",
		"whitePopulationTotal": 649122,
		"blackPopulationTotal": 190451,
		"whitePopulationInst": 2187,
		"blackPopulationInst": 3157
	}, {
		"STATEFP": "06",
		"COUNTYFP": "003",
		"COUNAME": "Alpine",
		"STNAME": "California",
		"whitePopulationTotal": 881,
		"blackPopulationTotal": 0,
		"whitePopulationInst": 0,
		"blackPopulationInst": 0
	}, {
		"STATEFP": "06",
		"COUNTYFP": "005",
		"COUNAME": "Amador",
		"STNAME": "California",
		"whitePopulationTotal": 33149,
		"blackPopulationTotal": 962,
		"whitePopulationInst": 2565,
		"blackPopulationInst": 723
	}, {
		"STATEFP": "06",
		"COUNTYFP": "007",
		"COUNAME": "Butte",
		"STNAME": "California",
		"whitePopulationTotal": 180096,
		"blackPopulationTotal": 3415,
		"whitePopulationInst": 438,
		"blackPopulationInst": 46
	}, {
		"STATEFP": "06",
		"COUNTYFP": "009",
		"COUNAME": "Calaveras",
		"STNAME": "California",
		"whitePopulationTotal": 40522,
		"blackPopulationTotal": 383,
		"whitePopulationInst": 107,
		"blackPopulationInst": 29
	}, {
		"STATEFP": "06",
		"COUNTYFP": "011",
		"COUNAME": "Colusa",
		"STNAME": "California",
		"whitePopulationTotal": 13854,
		"blackPopulationTotal": 195,
		"whitePopulationInst": 42,
		"blackPopulationInst": 1
	}, {
		"STATEFP": "06",
		"COUNTYFP": "013",
		"COUNAME": "Contra Costa",
		"STNAME": "California",
		"whitePopulationTotal": 614512,
		"blackPopulationTotal": 97161,
		"whitePopulationInst": 630,
		"blackPopulationInst": 558
	}, {
		"STATEFP": "06",
		"COUNTYFP": "015",
		"COUNAME": "Del Norte",
		"STNAME": "California",
		"whitePopulationTotal": 21098,
		"blackPopulationTotal": 993,
		"whitePopulationInst": 2027,
		"blackPopulationInst": 885
	}, {
		"STATEFP": "06",
		"COUNTYFP": "017",
		"COUNAME": "El Dorado",
		"STNAME": "California",
		"whitePopulationTotal": 156793,
		"blackPopulationTotal":...