JSFiddle - React, Tailwind, and code Playground
by jacobrelkin
HTML
<input type="text" value="blah1"/>
<br/>
<input type="text" value="blah2"/>
<br/>
<input type="text" value=""/>
<br/><br/>
<div>
</div>
JavaScript
$('input').filter(function() {
return $(this).val().length > 0;
}).attr('disabled', 'disabled').each(function() {
$('div:first').append(' ' + $(this).val());
}).val('');