JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<input value=1>
<input value=1>
<input value=1>
</div>
<br>
result: <span></span>
JavaScript
var l = 0;
$("div :input").each(function(){
l += this.value.length;
});
$('span').html('not change pic');
if (l >= 3) {
$('span').html('change pic');
}