JSFiddle - React, Tailwind, and code Playground

by dirtyd77

HTML

<div id="stage">
<input type='text' value="Test Content" />
</div>

<button id="b1">Click Me</button>

<div id="results"></div>

JavaScript

$(document).ready(function(){
    $('#b1').click(function(){
        $('#stage input').each(function(){
           $('#stage input').attr('value', $(this).val());
        });
        $('#results').html($('#stage').html());
    });
});