JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/dot-luv/jquery-ui.css">
<div id="container">
    <input type="text" value="Test 1" />
    <input type="text" value="Test 2" />
</div>

JavaScript

$('#container').find('input').each(function() {
  $(this).replaceWith($("<span />").text(this.value));
});