JSFiddle - React, Tailwind, and code Playground
HTML
<input type='text' />
JavaScript
$('input').on('blur', function() {
term = $.trim($(this).val());
alert( term );
});
<input type='text' />
$('input').on('blur', function() {
term = $.trim($(this).val());
alert( term );
});