JSFiddle - React, Tailwind, and code Playground
by Anoop Joshi
HTML
<div class="modal" Id="The ID of the Div"></div>
JavaScript
var withoutspace;
$("div").each(function(){
withoutspace= $(this).attr("id").replace(/ /g,'');
$(this).attr("id",withoutspace);
});