JSFiddle - React, Tailwind, and code Playground

by aflynt

HTML

<ul>
  <li id="one"><!-- where the new li is being put --></li>
  <!-- where I want the new li -->
</ul>

<div>
<div id="colorbox">colorbox</div>


</div>

JavaScript

//var script   = document.createElement("script");
  //  script.type  = "text/javascript";
//	script.src = 'http://www.southerncompany.info/mpcform/support-customers-filter.js';

var parentGuest = document.getElementById("colorbox");
var childGuest = document.createElement("script");
childGuest.id = "two";
childGuest.src = "http://www.southerncompany.info/mpcform/support-customers-filter.js";
parentGuest.parentNode.insertBefore(childGuest, parentGuest.nextSibling);