JSFiddle - React, Tailwind, and code Playground

by Sean Wessell

JavaScript

var sOut ='';

$('#toolCoCo').children().each(function(){
sOut+= "Select '" + this.value + "' as co UNION ALL "
})

$('textarea').val(sOut)