JSFiddle - React, Tailwind, and code Playground
HTML
<div id="wrap">
<div id="c1">1</div>
<div id="c2">2</div>
<div id="c2">3</div>
</div>
<button>here</button>
JavaScript
$(function(){
$('button').click(function(){
$("#wrap").children('div').each(function(){
$(this).removeAttr('id');
});
alert($("#wrap").html());
});
});