JSFiddle - React, Tailwind, and code Playground
HTML
<div class="form">
<input type="text"/><br />
<input type="text"/>
</div>
<p class="congrats">Congrats</p>
CSS
p.congrats{display:none;}
JavaScript
$(document).ready( function()
{
// Iterate over each input element in the div
$('.form input').each(function()
{
$(this).blur( function()
{
var complete = true;
$('.form input').each(function()
{
if ( !$(this).val() )
{
complete = false;
}
});
if ( complete == true )
{
$('.congrats').show();
}
});
});
});